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: add and call v3 API for retrieving individual admin form #2113

Merged
merged 3 commits into from
Jun 9, 2021

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Jun 9, 2021

Problem

Seems to have been missed out when duplicating the current APIs into their /api/v3 counterparts. This PR adds the new endpoint, calls the new endpoint, and adds missing tests for the endpoint.

Solution

Breaking Changes

  • Yes - this PR contains breaking changes
    • Client calls new endpoint
  • No - this PR is backwards compatible

Features:

  • feat: add v3 API for retrieving admin form by id
  • feat(AdminViewFormService): call v3 API to retrieve admin form

Tests

New integration tests have been added for the new endpoint.

Manual test

  • Access admin form. In chrome network tab, should call new /api/v3 endpoint.

and can be often wrong, and the real route is already lines away
this allows us to eventually deprecate the old GET /adminform endpoints (and its ilk)
@karrui karrui merged commit e55e1a9 into develop Jun 9, 2021
@karrui karrui deleted the feat/call-admin-form-v3-api branch June 9, 2021 07:18
mantariksh added a commit that referenced this pull request Jun 15, 2021
mantariksh added a commit that referenced this pull request Jun 15, 2021
* Revert "refactor: simplify isUenValid logic (#2156)"

This reverts commit 8f0eda6.

* Revert "feat: add UEN field (#2100)"

This reverts commit 35eeeaf.

* Revert "feat: add and call v3 API for retrieving individual admin form (#2113)"

This reverts commit e55e1a9.

* Revert "chore: remove redundant ValidationOption object properties for short text, long text and number fields (#2040)"

This reverts commit 95b6297.

* Revert "feat: Add webhook support for storage mode attachments (#1713)"

This reverts commit 332d3ce.
mantariksh pushed a commit that referenced this pull request Jun 17, 2021
* feat: add v3 API for retrieving admin form by id

* feat: remove `@routes` JSDoc line as they do not add info

and can be often wrong, and the real route is already lines away

* feat(AdminViewFormService): call v3 API to retrieve admin form

this allows us to eventually deprecate the old GET /adminform endpoints (and its ilk)
mantariksh added a commit that referenced this pull request Jun 17, 2021
#2201)

* feat: add v3 API for retrieving admin form by id

* feat: remove `@routes` JSDoc line as they do not add info

and can be often wrong, and the real route is already lines away

* feat(AdminViewFormService): call v3 API to retrieve admin form

this allows us to eventually deprecate the old GET /adminform endpoints (and its ilk)

Co-authored-by: Kar Rui Lau <karrui.lau@gmail.com>
@tshuli tshuli mentioned this pull request Jun 22, 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.

None yet

2 participants