-
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
Rename Resolution to Mag #8111
Rename Resolution to Mag #8111
Conversation
@dieknolle3333 I pushed a commit changing a lot of usages in the backend. This changes the protocol in a couple of ways (please adapt the frontend):
There are also a couple of spots where a change might be expected but cannot be easily done without breaking backwards compatibility with hard-to-migrate data. I did not change:
I also did not yet change the postgres tables. I might add this later if I manage to find time. That should not have impacts on the frontend-backend protocol though. For me to test that I don’t break anything there, it would be nice if everything else worked again first. Please ping me again if anything seems out of place. I might have missed some spots of course. |
thank you so much! 🙏 I will get back to you once I am done with the frontend or if I have a question about the backend part. |
after trying to rename "resolution" in a lot of places, I came to the conclusion that I will have to narrow the scope. I will rename the most important types and methods, but not do it everywhere. This also means that I will probably rebase. |
e6c887d
to
751d4f9
Compare
@fm3 from my side, the first iteration for the frontend is done. I renamed most methods and most parameters and added some sentences to the UI. |
Did that now :) From a first glance, it looks like things still work fine 🙌 Could you elaborate a bit on how you narrowed the scope? What areas/things did you skip? I guess this is related to the things I didn’t want to change in the backend as listed above? |
I fixed the snapshot tests, added a changelog entry and slightly updated the PR description. Once you described the scope as I mentioned above, this should be ready for a first review round :) |
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.
@fm3 or @MichaelBuessemeyer: there were merge conflicts in the migrations because the worker name already had no. 121. So I gave the migration in this PR no. 122 and changed it in MIGRATIONS.unreleased.md
, and renamed the files in conf/evolutions/122-resolution-to-mag.sql and /reversions/. I hope this was correct!
edit: nvm, the pipeline turned red
Yes, thanks! I see you found the various pitfalls of schema versions 😅 I added a commit also adapting the sql reversion (It is not checked in the CI, but could become important if we need to roll back after deploying this) |
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.
Nice, thanks you two :)
I didn't do another "extensive" testing session as only local vars were changed.
But sadly I noticed that the mag restrictions setting of task types is now buggy on this branch. @dieknolle3333 could you please fix this before merging? I just identified a potential reason for this.
How to test / reproduce:
1.
- create a new task type with mag restrictions (e.g. min 1, max 2)
- edit this task type -> the mag restriction setting should be empty -> broken
- create a task with this task type
- open such a task and try to zoom out of the valid range. On the master a warning toast is shown, but on this branch no toast is shown.
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.
Hej, I just noticed that the following messages aren't used in the code base
- dataset.mag_mismatch
- tracing.volume_mag_mismatch
Could you maybe double check this and in case you have the same result remove them? I'd say there is no use in keeping and maintaining them.
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.
no, they are not used. I also noticed this. I'll remove them
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.
Awesome thanks 🙏
The fix works and thanks for removing the unused messages
In this PR, the term "resolution" is replaced with "mag"/"magnification" in a lot of places.
*.glsl.ts
files either.URL of deployed dev instance (used for testing):
Steps to test:
TODOs:
backup branch: https://github.com/scalableminds/webknossos/tree/backup-rename-resolution-to-mag
Issues: