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

chore: setup mirage models + factory hooks #17321

Merged
merged 2 commits into from
May 31, 2023

Conversation

ChaiWithJai
Copy link
Contributor

Resolves #17294

This PR adds a new node-pool Mirage model and updates the node Mirage model that has a node-pool relationship. It also updates the factories for node to create an associated node-pool and the job factory to associate itself to a node-pool.

Impact
This PR impacts our Mirage server and the fake calls we make.

Side Effect
This PR runs prettier on mirage/factories/node so just pay attention to the afterCreate hook changes.

Next Steps
This is the final prerequisite we need to start developing against the real API. We'll start PRs that impact the view layer next.

Copy link
Contributor Author

@ChaiWithJai ChaiWithJai left a comment

Choose a reason for hiding this comment

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

@philrenaud could you pull this down and run the test suite? I'm failing unrelated tests that I believe might have to do with your work, but I'm unsure why that would happen.

@github-actions
Copy link

github-actions bot commented May 25, 2023

Ember Test Audit comparison

17293/mirage 0aca02e change
passes 1477 1477 0
failures 0 0 0
flaky 0 0 0
duration 10m 49s 004ms 13m 23s 423ms +2m 34s 419ms

@ChaiWithJai ChaiWithJai merged commit 717c252 into 17293/mirage May 31, 2023
@ChaiWithJai ChaiWithJai deleted the 17294/mirage-factories branch May 31, 2023 13:38
ChaiWithJai added a commit that referenced this pull request May 31, 2023
* refact:  update models for relationship

* chore: setup mirage models + factory hooks (#17321)

* chore: setup mirage models + factory hooks

* Acceptance test hardening to avoid faker/mirage randomness

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>

* chore:  update comment

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
lgfa29 added a commit that referenced this pull request Jun 21, 2023
* refact:  update models for relationship

* chore: setup mirage models + factory hooks (#17321)

* chore: setup mirage models + factory hooks

* Acceptance test hardening to avoid faker/mirage randomness

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>

* chore:  update comment

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
lgfa29 added a commit that referenced this pull request Jun 21, 2023
* refact:  update models for relationship

* chore: setup mirage models + factory hooks (#17321)

* chore: setup mirage models + factory hooks

* Acceptance test hardening to avoid faker/mirage randomness

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>

* chore:  update comment

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
lgfa29 added a commit that referenced this pull request Jun 22, 2023
* refact:  update models for relationship

* chore: setup mirage models + factory hooks (#17321)

* chore: setup mirage models + factory hooks

* Acceptance test hardening to avoid faker/mirage randomness

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>

* chore:  update comment

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
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.

2 participants