- Issue created by @fjgarlin
- Status changed to Needs review
3 months ago 11:27am 21 March 2024 - ๐ช๐ธSpain fjgarlin
Code needs review. This page is using that code https://fjgarlin-drupal.dev.devdrupal.org/project/config_notify/issues/3..., but as it's an edge case I'm not sure we're testing that particular edge case. In any case, the change seemed really straightforward.
- ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
On the dev site, Toggle MR Activity works as expected, and it even shows the number of comments that would be shown/hidden.
I checked https://fjgarlin-drupal.dev.devdrupal.org/project/config_notify/issues/3... as anonymous user, if that makes any difference. - First commit to issue fork.
-
drumm โ
committed 15221d8f on 7.x-3.x authored by
fjgarlin โ
Issue #3432638: MR comments and updates not displayed due to JS error
-
drumm โ
committed 15221d8f on 7.x-3.x authored by
fjgarlin โ
- ๐ช๐ธSpain fjgarlin
I did not anticipate this.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'hasOwnProperty')
So it seems like sometimes
afterComment
is completely null or undefined.
Maybe we can do something like this (though I don't get why it's fully empty or undefined in this case):if (!afterComment) { afterComment = {}; }
- ๐ช๐ธSpain fjgarlin
fjgarlin โ changed the visibility of the branch 7.x-3.x to hidden.
- ๐ช๐ธSpain fjgarlin
Created new MR https://git.drupalcode.org/project/drupalorg/-/merge_requests/235 with #7.
- ๐บ๐ธUnited States drumm NY, US
Weโre assuming all MR activity happens after the first issue comment. GitLab seems to have pulled in โ@mloayza commented on commit 151669b7 2 years agoโ on https://git.drupalcode.org/project/globallink/-/merge_requests/3.
So we either discard that MR note, or set
afterComment
to the earliest element ofcomments
-
drumm โ
committed 68909240 on 7.x-3.x authored by
fjgarlin โ
Issue #3432638: If MR notes are dated before the first issue comment,...
-
drumm โ
committed 68909240 on 7.x-3.x authored by
fjgarlin โ
- Status changed to Fixed
3 months ago 3:47pm 21 March 2024 - ๐บ๐ธUnited States drumm NY, US
The second fix is deployed & confirmed working now.
-
drumm โ
committed 68909240 on dcp-updates-mktplace-changes authored by
fjgarlin โ
Issue #3432638: If MR notes are dated before the first issue comment,...
-
drumm โ
committed 68909240 on dcp-updates-mktplace-changes authored by
fjgarlin โ
-
drumm โ
committed 15221d8f on dcp-updates-mktplace-changes authored by
fjgarlin โ
Issue #3432638: MR comments and updates not displayed due to JS error
-
drumm โ
committed 15221d8f on dcp-updates-mktplace-changes authored by
fjgarlin โ
Automatically closed - issue fixed for 2 weeks with no activity.