-
-
Notifications
You must be signed in to change notification settings - Fork 171
Improve "Project does not exists" popup #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Improve "Project does not exists" popup #954
Conversation
|
The CI passed, but it has a silent fail (the same I got on my local) |
|
Regarding the "silent fail": I'm trying to debug the This script notices that some error occurred, so the failing tests should be retried, but it uses an empty list of tests to to filter which ones to retry. Then, since there are no "failing tests" in the "re-run" step (100% of tests are skipped which technically gives a "passing" exit code not "failing")... the "empty re-run" pass exits with a passing/clean exit code and the CI run "succeeds". |
|
@DeeDeeG Thats an alarming discovery. We should probably insure that if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this got stuck in limbo because of the “silent CI failure” issue, but the core change is good. Whether or not we fix that (is #1121 relevant?), we should adopt the code changes in this PR.
Not going to “approve” something that's in draft, especially if we can't yet demonstrate that CI is correctly green… but we should be able to verify on our own if there are genuine spec regressions — and, if not, we can land this.
EDIT: Also, I notice that the CI situation might be different now that we're on Jasmine 2. Maybe I'll just kick CI again and see what it says!
| for (const missingFolder of missingFolders) { | ||
| const { pathToOpen } = missingFolder; | ||
|
|
||
| this.notifications.addWarning(`Removed ${pathToOpen}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my only quibble on this otherwise excellent PR:
Since the original notification tells you exactly which directories cannot be found, I think it's redundant to spawn an additional notification for each one in order to give the user information they already had. I think we can remove this line.
|
I don't have the bandwidth to go deep on this at this instant, but I'm commenting here to mark this as a PR that warrants further examination now that the Electron upgrade project is largely behind us. Edit: ah, right, this is the one that needs an explicit kick so that CI re-runs. I might have to push a dummy change to this PR to trigger it, since taking it out of draft didn't do the trick. |
…lean up the unreachable projects
733bf61 to
1795e1f
Compare
|
Hey, I re-triggered the CI (and updated a few lines of test to make them pass with jasmine2), it should be fine now. The failing macOS is also failing on master with the very same error, it's not related to these changes. |
Identify the Bug
This is a first improvement to fix #833.
Description of the Change
I've changed the warning to be dismissable (won't auto-hide anymore) and added two buttons. The first one "Remove all", removes all missing folders from the project. The second one just closes the pop-up for now.
Alternate Designs
On the ticket there were some discussions if we can add an option to fix the paths or remove only some of them. I think just removing all of the deleted folders solves the problem most of the time, I would not write this right now.
There's a reason behind adding a "Snooze" button, something like we already have for new versions' popup. I'm happy to add it, if you also see the need for this.
Possible Drawbacks
Without the snooze button, the auto-hiding popup will became a permanent popup on every start.
Verification Process
Follow the steps described on the issue.
Release Notes
The missing folder popup warning now has a button to remove the missing folders from the workspace.
Other things to discuss
anyhelper should work with the old jasmine version we're using here.