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

Update forms to enable presets #157

Merged
merged 12 commits into from
Mar 20, 2023

Conversation

jverswijver
Copy link
Contributor

No description provided.

@jverswijver jverswijver requested a review from A-Baji March 16, 2023 19:00
Copy link
Collaborator

@A-Baji A-Baji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test for the new preset route?

Copy link
Collaborator

@guzman-raphael guzman-raphael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jverswijver Looks great! 🤝

Would you just rename the new property in the spec please? Think this matches the rest of the theme better.

Comment on lines 97 to 99
preset_function: >
def preset_function():
return {'preset 1': {'b_id': 14}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update this to the following? I think it is a bit cleaner.

Suggested change
preset_function: >
def preset_function():
return {'preset 1': {'b_id': 14}}
presets: >
def presets():
return {'preset 1': {'b_id': 14}}

@guzman-raphael guzman-raphael merged commit cbcd156 into datajoint:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants