Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

fix(infra): remove statefull type from nodepool entity#285

Merged
nxtcoder17 merged 1 commit into
mainfrom
fix/remove-nodepool-type
Mar 4, 2024
Merged

fix(infra): remove statefull type from nodepool entity#285
nxtcoder17 merged 1 commit into
mainfrom
fix/remove-nodepool-type

Conversation

@nxtcoder19
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

PR Type: Enhancement

PR Summary: This pull request focuses on removing the 'IsStateful' property from the NodePool entity across various files, including GraphQL schema definitions, model structures, and domain logic. The changes span across GraphQL generated code, model definitions, and internal domain logic, indicating a significant shift in how NodePools are handled and represented within the system.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
📝 Complexity: the changes are too large or complex for Sourcery to approve.
  • Unsupported files: the diff contains files that Sourcery does not currently support during reviews.

General suggestions:

  • Ensure comprehensive review and update of any documentation that references the 'IsStateful' property of NodePools to prevent confusion or outdated information.
  • Given the removal's impact on the system's functionality and potential changes in behavior, it might be beneficial to communicate these changes to stakeholders or teams that rely on the NodePool entity's structure, especially those concerning statefulness.
  • Consider the broader impact of this change on the system's functionality, particularly in areas where the statefulness of NodePools might have been a critical factor. It may be necessary to evaluate and adjust related functionalities or features accordingly.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

return nil, errors.NewE(err)
}

if np.IsStateful != nodePoolIn.IsStateful {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (llm): Given the removal of the IsStateful property from the NodePool entity, it's crucial to ensure that any logic previously dependent on this property is appropriately adjusted or removed. This includes any tests that might have been checking the behavior or state changes based on the IsStateful property. Please verify if there are existing tests covering this logic and update or remove them as necessary to reflect the current state of the codebase.


return e.complexity.NodePool.ID(childComplexity), true

case "NodePool.stateful":
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (llm): The removal of IsStateful from the GraphQL schema suggests that any associated tests (e.g., unit tests for resolvers, integration tests involving GraphQL queries/mutations) should be reviewed. If there were tests specifically validating the behavior or presence of the IsStateful field in GraphQL responses, those tests need to be updated or removed to align with the schema changes.


type SearchNodepool struct {
Text *repos.MatchFilter `json:"text,omitempty"`
IsStateful *repos.MatchFilter `json:"isStateful,omitempty"`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (llm): The removal of IsStateful from the SearchNodepool struct indicates a change in the search/filtering capabilities. It's important to ensure that any tests covering search or filtering functionality are updated to reflect this change. Specifically, tests that might have been using IsStateful as a filter criterion should be revised or removed as appropriate.

ClusterName string `json:"clusterName" graphql:"noinput"`

SyncStatus t.SyncStatus `json:"syncStatus" graphql:"noinput"`
IsStateful bool `json:"stateful"`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (llm): With the IsStateful property being removed from the NodePool entity, it's essential to review any entity-level tests that might have been asserting on this property's presence or value. If such tests exist, they should be updated to align with the current entity structure, ensuring that our test suite accurately reflects the codebase's state.

@nxtcoder17 nxtcoder17 merged commit b0a663e into main Mar 4, 2024
@nxtcoder17 nxtcoder17 deleted the fix/remove-nodepool-type branch March 4, 2024 06:18
abdheshnayak pushed a commit that referenced this pull request Nov 5, 2024
fix(infra): remove statefull type from nodepool entity
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.

2 participants