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

feat(admin-form): individual form field api #1799

Merged
merged 9 commits into from
May 6, 2021

Conversation

seaerchin
Copy link
Contributor

Problem

Individual form fields require their own endpoint to disentangle their logic from other unrelated logic in forms, such as the settings/collaborators.

Closes #1498

Solution

This adds a new GET endpoint for individual fields

Tests

Added unit and integration tests for /fields/:fieldId but there are no manual tests. This is because the frontend is still using the whole admin form object to update the UI

@seaerchin seaerchin changed the title Refactor/extract form field view feat(admin-form): individual form field api May 5, 2021
@seaerchin seaerchin requested review from karrui and mantariksh and removed request for karrui May 5, 2021 05:50
@seaerchin seaerchin force-pushed the refactor/extract-form-field-view branch from 8083454 to 5f12cab Compare May 5, 2021 07:21
@seaerchin
Copy link
Contributor Author

just leaving this comment here to remind myself that this is my first PR without any comments HAHAHHA

@seaerchin seaerchin merged commit 150b5f5 into develop May 6, 2021
@seaerchin seaerchin deleted the refactor/extract-form-field-view branch May 6, 2021 05:27
@karrui karrui mentioned this pull request May 11, 2021
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.

[API] Extract individual form field view endpoint from GET /:formId/adminform
2 participants