-
Notifications
You must be signed in to change notification settings - Fork 29
Remove "RTC" drive prefix from filepath added by jupyter-collaboration when using notebook scheduler widget #577
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
Remove "RTC" drive prefix from filepath added by jupyter-collaboration when using notebook scheduler widget #577
Conversation
4865f80
to
7b3c87e
Compare
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.
Hi @asmita-sharma1625. Thank you for your work. I see that you noted that file name + file extension is used for the Job Name when job is created from the notebook top panel vs file name only when created from file browser and changed it. This makes sense as we already have a File Name field for file name + file extension, behavior across creation from file browser and top notebook panel should be consistent.
Taking that into account, to fix E2E test could you please manually update the expected snapshot used in the failed E2E test by replacing it with actual snapshot for that test from the failed E2E run report? Expected snapshots are stored in ui-tests/tests/jupyter_scheduler.spec.ts-snapshots
folder.
…when using notebook scheduler widget
7b3c87e
to
861a8c7
Compare
Thanks for the confirmation on the expected job name. Updating accordingly. |
Fixed UI tests as discussed. Kindly review or merge, if not further comments. |
Suggestion - I am not sure if the job creation page from file browser or the top panel widget should differ in any scenario. If not, we can possibly refer to the same snapshot for both the UI test cases. This will help contributors identify failures in the other workflow while modifying one workflow, keeping the user experience in sync. I can do the needful if the suggestion seems helpful. |
@asmita-sharma1625 thank you for the update. Everything looks good.
Job creation page in both scenarios should look the same (given the same inputs and settings). This suggestion makes a lot of sense and would be a clear improvement to the E2E tests, let's implement it. Thank you for proactively making an improvement suggestion and volunteering to implement it. |
…ar to the same snapshot
Updated and added the commit to this PR. It was also mentioned as a TODO in UI tests to sync the job names for job creation across file browser and toolbar workflows. This TODO is also resolved with the earlier commit. |
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.
Everything looks good. Thank you for going beyond the issue description and making additional improvements.
When creating jobs using the job creation widget in the notebook top panel, check and remove "RTC" drive prefix from the current notebook file path which is added by jupyter-collaboration.
References
jupyter-collaboration
andjupyter_scheduler
extensions are installed, jupyter_scheduler detectsnotebook.ipynb
asRTC:notebook.ipynb
which causes jupyter_scheduler failing to find the file in path"Reproduce
In your conda environment for Jupyter Labs,
Install and enable Jupyter Collaboration Extension
Install and enable Jupyter Scheduler Extension
Run Jupyter Labs
In the local jupyter lab server running on your browser, perform the following steps manually:
Input path 'RTC:jupyter-scheduler/rtc-path-test/test-rtc.ipynb' does not exist.
✅Code changes
Command
createJobCurrentNotebook
now usesgetSelectedFilePath
andgetSelectedFileBaseName
helper functions which useserviceManager.contents
API to check if there is an added “RTC” drive name in the file path and return local path without it.User-facing changes
Input path 'RTC:jupyter-scheduler/rtc-path-test/test-rtc.ipynb' does not exist.
will no longer surface during job creation using the notebook top panel widget.Here’s the video showcasing the fixed experience
https://github.com/user-attachments/assets/86cb5cf0-7e98-4681-86e8-ff847bf23e57
Backwards-incompatible changes
None.