Skip to content

Conversation

@stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Aug 15, 2023

What does this PR do?

  1. Fix typo in labels placeholder
  2. Reorder tags and helper text

Test Plan

Visit Preview

Manual:

image

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

kabhamo and others added 11 commits April 2, 2023 12:40
Use `symmetricDifference` instead of `difference`.
- `difference` only returns values that are present in the edited attributes, but not in the originally fetched attribute vales. This always ends up returning an empty array.
- I used `symmetricDifference` as it returns an intersection of `difference` from both sides and works perfectly for this use case, as the original attributes never change.
- Original code creates a reference copy of `$doc` into `$work` which means that editing values of `$work` changes the values in `$doc`.
- Fix this behaviour by creating a deep clone of `$doc` into `$work`, so underlying values aren't cross-referenced.
Instead of cramming all the steps for correct deep cloning, I split the implementation into 4 distinct steps:
- define they keys to exclude
- filtering the keys
- reduce filtered keys into an object
- returning a writable deep clone
…document-after-array-value-deletion

fixed issue that didn't allow a user to update a document when deleting elements in an array attribute
@vercel
Copy link

vercel bot commented Aug 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ❌ Failed (Inspect) Aug 21, 2023 6:52pm
console-cloud ❌ Failed (Inspect) Aug 21, 2023 6:52pm
console-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2023 6:52pm
console-preview ❌ Failed (Inspect) Aug 21, 2023 6:52pm

1. Fix typo in labels placeholder
2. Reorder tags and helper text
Copy link
Contributor

@heyCarla heyCarla left a comment

Choose a reason for hiding this comment

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

Everything looks good, just one small change needed!

@stnguyen90 stnguyen90 requested a review from heyCarla August 16, 2023 00:10
Copy link
Contributor

@heyCarla heyCarla left a comment

Choose a reason for hiding this comment

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

NVM, don't know what I was thinking. I just checked the pill again and you're using the right one. All good here!

@ArmanNik ArmanNik changed the base branch from main to 1.4.x August 21, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants