Skip to content

Feat/throw error for unavailable nested fields#38

Merged
Deepak-Kharah merged 22 commits intomasterfrom
feat/throw-error-for-unavailable-nested-fields
Jul 28, 2022
Merged

Feat/throw error for unavailable nested fields#38
Deepak-Kharah merged 22 commits intomasterfrom
feat/throw-error-for-unavailable-nested-fields

Conversation

@Deepak-Kharah
Copy link
Copy Markdown
Contributor

The entry data is empty when the user is on the create the new page. This
would work if getField is used to fetch root elements. But, when we try
to fetch the nested elements it fails with no useful information to the
user. Hence, to have a consistent output, we are throwing an
error for all the getField() calls within the new entry page.

We determine whether the page is in create mode or edit mode by
checking if the entry is present. Because entry data is not passed to
SDK when it is on the create page.

Please Note: Since we allow only custom fields within the create new
entry page, this change only applies to the custom fields.

fixes: CS-27725

Deepak-Kharah and others added 19 commits March 9, 2022 13:42
This issue occured due to improper query
param formed. The resolution was to make
it closer to what APIs use.
referring to same test data creates an unsanitized
environment for the next test environment after the
packages has been updated to latest release due to
the vulnerabilities fixed as per the SRE report.
- updated package version
- updated docs
- updated build
- updated subresource integrity hash
- update readme file
The entry data is empty when the user is on the create new page. This
would work if getField is used to fetch root elements. But, when we try
to fetch the nested elements it fails with no useful information to the
user. Hence, in order to have a consistent output, we are throwing an
error for all the getField() calls within the new entry page.

We determine whether the page is in create mode or edit mode by
checking if the entry is present. Because entry data is not passed to
SDK when it is in create page.

Please Note: Since, we allow only custom fields within the create new
entry page, this change only applys to the custom fields.

fixes: CS-27725
@Deepak-Kharah Deepak-Kharah marked this pull request as ready for review July 27, 2022 05:00
@Deepak-Kharah Deepak-Kharah requested a review from a team as a code owner July 27, 2022 05:00
@Deepak-Kharah Deepak-Kharah requested a review from a team July 27, 2022 05:00
@Deepak-Kharah Deepak-Kharah merged commit 59afc8b into master Jul 28, 2022
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.

6 participants