Repository navigation
Do handle the "What's cooking" mails correctly - #487
Merged
Merged
Conversation
In the review of gitgitgadget#458, we decided to go for a `Map` to store the parsed branches (a previous iteration had used a plain old Javascript object instead). The one user of this map was not updated accordingly. This prevented https://dev.azure.com/gitgitgadget/git/_build/results?buildId=78770 from handling the "What's cooking" mail properly, even though https://lore.kernel.org/git/xmqqlfb4k0h8.fsf@gitster.c.googlers.com/ was properly parsed correctly (in https://lore.kernel.org/git/0, that mail was added via 3ae7c4db85fed3028585ead06e2da1d8a11316b0). Let's fix this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Thank you, ESLint. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This should make it easier to diagnose potential hiccups in the future. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
derrickstolee
approved these changes
Mar 8, 2021
webstech
reviewed
Mar 8, 2021
| if (!sousChef.messageID) { | ||
| throw new Error(`Could not parse Message-ID of ${mbox}`); | ||
| } | ||
| console.log(`Handling "${sousChef.subject}"`); |
Contributor
There was a problem hiding this comment.
Just noting that in the unlikely event subject is not found the log will say:
console.log
Handling "undefined"
Member
Author
There was a problem hiding this comment.
Right... Still better than saying nothing at all ;-)
webstech
reviewed
Mar 8, 2021
| console.log(`Handling "${sousChef.subject}"`); | ||
| const whatsCookingBaseURL = "https://lore.kernel.org/git/"; | ||
| for (const branchName of Object.keys(sousChef.branches)) { | ||
| for (const branchName of sousChef.branches.keys()) { |
Contributor
There was a problem hiding this comment.
Sorry I missed this (I had updated in my local test branch). May need to look at creating tests for MailArchiveGitHelper.
Member
Author
There was a problem hiding this comment.
That would be nice. I am not quite comfortable yet adding these tests...
Member
Author
|
So... https://lore.kernel.org/git/xmqqft1542wu.fsf@gitster.c.googlers.com/ has been sent on Monday, and it looks as if this PR did its job (see e.g. gitgitgadget/git#889 (comment))! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In reacting to the review of #458, I managed to break the central part of it. D'oh.