Skip to content
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

Allow to enforce specific mag(s) for tasks #4075

Closed
philippotto opened this issue May 7, 2019 · 4 comments · Fixed by #4101
Closed

Allow to enforce specific mag(s) for tasks #4075

philippotto opened this issue May 7, 2019 · 4 comments · Fixed by #4101
Assignees

Comments

@philippotto
Copy link
Member

If the user is zoomed out too far, a toast should appear which says "please zoom in".

@philippotto
Copy link
Member Author

@youri-k Could you add an allowedMagnifications property to the AnnotationSettings case class (plus all moving parts around it). I want to be able to store this property for tasks so that annotations created for a task have that property. The value should have the type Array<Array<int>> so that properties, such as [[1, 1, 1], [2, 2, 2]] are valid. I'm also fine with a general JSON type. The property should be optional. Let me know in case you have questions :)

@philippotto
Copy link
Member Author

On a second thought, I think a JSON type is better. I'll probably use something as {minMagnification: [1, 1, 1], maxMagnification: [4, 4, 4]}.

@youri-k
Copy link
Contributor

youri-k commented May 16, 2019

@philippotto I added the property as you can see in the commit. I hope you didn't already started working on another branch. Let me know if you need anything more 🙂

@philippotto
Copy link
Member Author

Excellent! I'll use your work tomorrow. However, the CI build failed in Assert schema.sql and evolutions are equal. Can you have a look? :)

philippotto added a commit that referenced this issue May 28, 2019
* add allowed magnifications to annotation settings #4075

* add constraints to sql evolution

* update test csv

* allow to enforce mags

* add enforced mag option to task type form

* finalize enforced magnification feature by connecting task type settings with actual enforcement

* fix linting

* fix mag restriction if provided mag doesn't exist

* incorporate feedback

* add migration guide entry and pr number in evolution #4101

* update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants