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

Fix Boards Factory - associate with the right project #1146

Merged
merged 4 commits into from
May 9, 2023

Conversation

etdsoft
Copy link
Member

@etdsoft etdsoft commented May 9, 2023

Before this PR, a Board created via the factory could end up associated with a Node in a different project. We used create(:project) inside the node association which was independent from the board's own :project association.

By using an after-build callback we can ensure that the node belongs to the same project already setup via the :project association.

We guard this assignment to allow the caller to specify a different node (e.g. a host in the project).

Check List

  • Added a CHANGELOG entry

Internal spec refactor, inclined to skip the CHANGELOG.

Before this PR, a Board created via the factory could end up associated
with a Node in a different project. We used create(:project) inside the
node association which was independent from the board's own :project
association.

By using an after-build callback we can ensure that the node belongs to
the same project already setup via the :project association.

We guard this assignment to allow the caller to specify a different node
(e.g. a host in the project).
@etdsoft etdsoft merged commit b18cbc9 into develop May 9, 2023
@etdsoft etdsoft deleted the fix_board_factory branch January 28, 2024 11:06
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.

None yet

1 participant