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

tech-story: [M3-9017] - Add MSW crud domains #11428

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

abailly-akamai
Copy link
Contributor

@abailly-akamai abailly-akamai commented Dec 16, 2024

Description 📝

Straight forward PR to add domains to CRUD mode (including seeds)

Screenshot 2024-12-16 at 16 06 02

Changes 🔄

  • Add domains CRUD mode
  • Add domains seed
  • Fix small eventing display bug with "Import a zone" events

How to test 🧪

Prerequisites

Verification steps

  • Reset all MSW
  • Play with domains crud mode (including seeding)
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support

  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@abailly-akamai abailly-akamai self-assigned this Dec 16, 2024
@abailly-akamai abailly-akamai marked this pull request as ready for review December 16, 2024 21:05
@abailly-akamai abailly-akamai requested a review from a team as a code owner December 16, 2024 21:05
@abailly-akamai abailly-akamai requested review from hkhalil-akamai and pmakode-akamai and removed request for a team December 16, 2024 21:05
been <strong>added</strong> to <EventLink event={e} to="entity" />.
</>
);
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes the case where there is no message associated with a DomainRecord added via importing a zone (most likely an APIv4 omission)

Screenshot 2024-12-16 at 16 01 31

Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed this issue for TXT records, since the hostname or value fields are not required. Not sure if this was intended, but could this be fixed as well?

Screenshot 2025-01-02 at 1 17 29 PM
Screenshot 2025-01-02 at 1 17 22 PM

@@ -28,7 +28,7 @@ const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
export const queueEvents = (props: QueuedEvents): Promise<void> => {
const { event, mockState, sequence } = props;

const initialDelay = 7500;
const initialDelay = 2500;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

queuing events quicker since we shouldn't have to wait that much when mocking

Copy link
Contributor

@jaalah-akamai jaalah-akamai left a comment

Choose a reason for hiding this comment

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

I seeded only 6, but got more than I expected - intended?

Screenshot 2024-12-17 at 9 27 14 PM

@abailly-akamai abailly-akamai marked this pull request as draft December 18, 2024 20:58
@abailly-akamai
Copy link
Contributor Author

Re-converting to draft in order to revisit the bugs mentioned in code review

@abailly-akamai abailly-akamai marked this pull request as ready for review December 30, 2024 15:38
@abailly-akamai
Copy link
Contributor Author

@jaalah-akamai had a bad update to the loader. all fixed now. changes are limited to just domains without further optimization to the MSW tooling

Copy link
Contributor

@jaalah-akamai jaalah-akamai left a comment

Choose a reason for hiding this comment

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

✅ Issues resolved - no more crash
✅ Seeds are working as intended

@jaalah-akamai jaalah-akamai added the Add'tl Approval Needed Waiting on another approval! label Dec 30, 2024
been <strong>added</strong> to <EventLink event={e} to="entity" />.
</>
);
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed this issue for TXT records, since the hostname or value fields are not required. Not sure if this was intended, but could this be fixed as well?

Screenshot 2025-01-02 at 1 17 29 PM
Screenshot 2025-01-02 at 1 17 22 PM

Copy link
Contributor

@hkhalil-akamai hkhalil-akamai left a comment

Choose a reason for hiding this comment

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

✅ Create, read, update, delete domain records works as expected.
✅ Events appear as expected.

Nice work @abailly-akamai. Should we make a ticket for domain records CRUD?

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jan 6, 2025
Copy link

github-actions bot commented Jan 8, 2025

Coverage Report:
Base Coverage: 86.97%
Current Coverage: 86.94%

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 478 passing tests on test run #6 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing478 Passing2 Skipped112m 43s

@abailly-akamai abailly-akamai merged commit caca6dd into linode:develop Jan 8, 2025
23 checks passed
Copy link

cypress bot commented Jan 8, 2025

Cloud Manager E2E    Run #7054

Run Properties:  status check passed Passed #7054  •  git commit caca6dd01c: tech-story: [M3-9017] - Add MSW crud domains (#11428)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #7054
Run duration 30m 53s
Commit git commit caca6dd01c: tech-story: [M3-9017] - Add MSW crud domains (#11428)
Committer Alban Bailly
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 478
View all changes introduced in this branch ↗︎

dmcintyr-akamai pushed a commit to dmcintyr-akamai/manager that referenced this pull request Jan 9, 2025
* add MSW crud domains

* Added changeset: Add MSW crud domains

* feedback @jaalah-akamai

* feebback @pmakode-akamai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants