-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix timeline feature error when base url is set #402
base: main
Are you sure you want to change the base?
Conversation
Failures seem to be unrelated (see #403). |
c17f130
to
87dc382
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.
Since #393 seems to suggest an issue with the server base URL, should you make use of it in this PR? The baseUrl
is available in JupyterLab's page config.
The problem isn't actually with the baseUrl, it's just that the document name was being incorrectly extracted. |
Could you write a test that shows that this was indeed the cause of problem? In particular, I'd like to see that your fix works even if "api/collaboration/timeline" is present in the base URL. |
Currently, the updated logic ensures that only the last occurrence of Would you still like me to add a specific test to verify this behavior? I also want to mention that there’s another open PR (#401) that creates a test file for the timeline slider. If I add a test here, it would create or modify the same file, potentially leading to conflicts later. Let me know how you'd like to proceed—whether to hold off on tests for this PR until #401 is merged or go ahead and add them now. |
@@ -20,6 +20,7 @@ type Props = { | |||
contentType: string; | |||
format: string; | |||
}; | |||
const DOCUMENT_TIMELINE_URL = 'api/collaboration/timeline'; |
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.
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.
Yes I will fix that. Thanks for the feedback !
Yes it would be nice to have a test. I merged #401. |
This PR fixes #393