-
Notifications
You must be signed in to change notification settings - Fork 24
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
Write wkurl into annotation nml file #6964
Conversation
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.
Backend mostly LGTM :)
I left one comment on checking the url on upload. My other two refactorign-related comments I’m not certain about myself, maybe you could consider your view on them.
The front-end also has an NML export in serializeToNml
in nml_helpers.ts
. The wkurl should be added there too (serializeParameters
). @philippotto maybe you could give a pointer on how to get the current host there? Simply from window.location? Or is there a better way?
Yes, I think |
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.
Backend LGTM and works as expected :) front-end export works as expected as well.
Looks like location
is not available during the front-end tests, though, making the CI red. @philippotto any pointers? 😅
Frontend looks good to me, too :) I hope that I fixed the CI. |
snapshot needs to be recreated. Also the resulting wkUrl="//" does not look very useful. Is there just no host at time of test? |
I adapted the mocked location to have a protocol and a host. I also tried running
I ran a |
Don't know why, but the wkUrl is not added when recreating the snapshots. |
@philippotto Do you have insights as to why that may be so? Also the frontend tests still fail 🙈 maybe you could have a look there too. No great hurry :) |
Should be fixed now. I also took the liberty to rename the yarn commands a bit to make them clearer. There are two different snapshot kinds (from e2e tests and from unit tests) which explains why the necessary snapshots didn't update (I also fell for this). |
Sounds good, thanks! And refreshing the unit test snapshots is just yarn start after previously removing them? 😮 |
Oops. Still early apparently 🙈 |
No worries :) Thanks for taking care of this! |
URL of deployed dev instance (used for testing):
Steps to test:
When uploading annotations from the dataset view it seems like org and dataset are not checked? Therefore wkUrl is not used there.
Issues: