Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

MWPW-141440 Improve Bulk Updating #29

Merged
merged 3 commits into from
Jan 30, 2024
Merged

Conversation

Brandon32
Copy link
Collaborator

  • Improve Bulk Updating

Resolves: MWPW-141440

Copy link
Collaborator

@meganthecoder meganthecoder left a comment

Choose a reason for hiding this comment

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

Looks good, just a few small notes


describe('BulkUpdater', () => {
describe('loadFromUrl', () => {
it('should load data from a URL');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not testing anything here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated these tests with dependency injection for fetch

Comment on lines 63 to 65
it('should call migration.init');

it('should call migration.migrate');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I created a new test for this after some refactoring.

@@ -71,7 +71,7 @@ describe('DocumentManager', () => {

it('loads a mock file');

it('loads a draft file', async () => {
it.skip('loads a draft file', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why the skip? If it needs more work, do we have a ticket for that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Occasionally this test would time out, but I updated these tests with dependency injection for fetch so no more skip needed.

Copy link
Collaborator

@JasonHowellSlavin JasonHowellSlavin left a comment

Choose a reason for hiding this comment

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

Looks really good!

@Brandon32 Brandon32 merged commit d329c92 into adobecom:main Jan 30, 2024
3 checks passed
@Brandon32 Brandon32 deleted the bulk-update branch January 30, 2024 16:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants