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

custom_fields: enabling visibility on deposit form #681

Merged
merged 4 commits into from
Jan 31, 2024

Conversation

0einstein0
Copy link
Member

@0einstein0 0einstein0 commented Jan 18, 2024

"section": _("Audiovisual core"),
"icon": "camera",
"hide_from_upload_form": False,
"compose_fields": True, # marks the group as dynamic
Copy link
Contributor

Choose a reason for hiding this comment

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

We need a better naming for this :) Not sure what yet.....

Copy link
Contributor

Choose a reason for hiding this comment

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

what about be more explicit and say something like

  • show_all_fields_by_default
  • show_fields_on_demand
  • search_fields (kind of dropdown paradigm of show options vs search for options)

"section": _("Audiovisual core"),
"icon": "camera",
"hide_from_upload_form": False,
"compose_fields": True, # marks the group as dynamic
Copy link
Contributor

Choose a reason for hiding this comment

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

what about be more explicit and say something like

  • show_all_fields_by_default
  • show_fields_on_demand
  • search_fields (kind of dropdown paradigm of show options vs search for options)

# Custom fields UI components
CUSTOM_FIELDS_UI = [
# codemeta
# CODEMETA_CUSTOM_FIELDS_UI, # TODO enable when fixed (see https://github.com/zenodo/rdm-project/issues/217)
Copy link
Contributor

Choose a reason for hiding this comment

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

does it make sense to check with @0einstein0 if we enable it to check if it's an easy fix?

Copy link
Contributor

Choose a reason for hiding this comment

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

it was not meant as a part of this sprint if I understood correctly

*AUDIOVIS_FIELDS,
# codemeta,
*CODEMETA_CUSTOM_FIELDS,
# TODO enable when fixed (see https://github.com/zenodo/rdm-project/issues/217)
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover?

Copy link
Contributor

@zzacharo zzacharo left a comment

Choose a reason for hiding this comment

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

Discussed with @kpsherva IRL that the naming comment will be handled after the first merge of the chain. If so, then we can go ahead and merge this!

@kpsherva kpsherva force-pushed the Custom-Fields branch 2 times, most recently from 397f4b4 to 28ab451 Compare January 31, 2024 12:33
@kpsherva kpsherva merged commit 06d1045 into zenodo:master Jan 31, 2024
3 checks passed
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