-
Notifications
You must be signed in to change notification settings - Fork 179
feat: container library-course sync diff prevew [FC-0097] #2464
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: container library-course sync diff prevew [FC-0097] #2464
Conversation
|
Thanks for the pull request, @navinkarkera! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
b2c21a7 to
9651cc4
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2464 +/- ##
==========================================
+ Coverage 94.64% 94.65% +0.01%
==========================================
Files 1188 1195 +7
Lines 26237 26441 +204
Branches 5690 5742 +52
==========================================
+ Hits 24832 25028 +196
- Misses 1346 1354 +8
Partials 59 59 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9a5501c to
22a4b6b
Compare
|
@navinkarkera thank you, this looks amazing!! I'm so excited about this progress. I'm adding a few minor notes on #2176 based on this PR, all of which can be tracked as minor followup issues if they are more than trivial |
rpenido
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thank you for your work, @navinkarkera!
- I tested this using the instructions from the PR
- I read through the code
- I checked for accessibility issues
- Includes documentation
I left one comment about a string translation.
7fa2792 to
d5ce95b
Compare
|
I found this issue:
The same if the breadcrumbs for subsection and units:
@navinkarkera let me know how complex it is to solve that issue? (No more than 30 minutes to solve) |
|
@ChrisChV This would require more than 30 minutes to resolve since we'll need to fetch new and old names (currently, we only fetch children data). |
Sure. I will merge it to continue with the AC testing. I will create a follow-up ticket to address this bug. Thanks! |
|
|
||
| // Use new mapB for getting new index for added elements | ||
| addedA.forEach((addedRow) => { | ||
| updatedA.splice(mapB.get(addedRow.id)?.index!, 0, { ...addedRow, state: 'added' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm testing out oxlint and it raised a valid warning about this code:
⚠ typescript-eslint(no-non-null-asserted-optional-chain):
Optional chain expressions can return undefined by design: using a non-null assertion is unsafe and wrong.
╭─[src/container-comparison/utils.ts:128:49]
127 │ addedA.forEach((addedRow) => {
128 │ updatedA.splice(mapB.get(addedRow.id)?.index!, 0, { ...addedRow, state: 'added' });
· ┬ ┬
· │ ╰── non-null assertion made after optional chain
· ╰── optional chain used
129 │ });
╰────
help: Remove the non-null assertion.


Description
Container sync preview implemented as describe in #2176
screencast.mp4
Limitations:
Useful information to include:
Supporting information
Private-ref: https://tasks.opencraft.com/browse/FAL-4246Testing instructions
Other information
Include anything else that will help reviewers and consumers understand the change.
Best Practices Checklist
We're trying to move away from some deprecated patterns in this codebase. Please
check if your PR meets these recommendations before asking for a review:
.ts,.tsx).propTypes,defaultProps, andinjectIntlpatterns are not used in any new or modified code.src/testUtils.tsx(specificallyinitializeMocks)apiHooks.tsin this repo for examples.messages.tsfiles have adescriptionfor translators to use.../. To import from parent folders, use@src, e.g.import { initializeMocks } from '@src/testUtils';instead offrom '../../../../testUtils'