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

refactor: nicer rems.actions.components #2425

Merged
merged 16 commits into from
Nov 4, 2020
Merged

refactor: nicer rems.actions.components #2425

merged 16 commits into from
Nov 4, 2020

Conversation

opqdonut
Copy link
Contributor

@opqdonut opqdonut commented Nov 3, 2020

related to #2040

Definition of Done / Review checklist

Reviewability

  • link to issue

Documentation

  • add or update docstrings for namespaces and functions
  • components are added to guide page

Follow-up

  • no critical TODOs left to implement

fetching the catalogue was broken

also use new comment-field

also remove some unused parameters
... to avoid conflict with reagent, which uses the :key prop as the
react key, which should be unique

for rems.fields/multi-attachment-view, use :id instead of :key since
that's the idiom for view components
Copy link
Collaborator

@Macroz Macroz left a comment

Choose a reason for hiding this comment

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

Looks good. I can help building some new browser tests for these different actions.

@opqdonut opqdonut merged commit 1c604c9 into master Nov 4, 2020
@opqdonut opqdonut deleted the refactor-actions branch November 4, 2020 14:09
opqdonut added a commit that referenced this pull request Nov 5, 2020
Before #2425 the action comment defaulted to "", which was sent to the
backend if no comment was entered. After, it defaulted to nil, which
violated the API schema and resulted in a HTTP 400. Return to the old
behaviour, but add TODOs for cases where it might make sense to
require a nonempty comment.
@opqdonut opqdonut mentioned this pull request Nov 5, 2020
4 tasks
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.

2 participants