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

Return future-dated subscription pools from stage #57

Merged

Conversation

synkd
Copy link
Collaborator

@synkd synkd commented Feb 27, 2025

This PR modifies the API requests that fetch the list of subscription pools to include future-dated subscriptions when using a stage RHSM account while leaving requests to prod RHSM unchanged.

This PR modifies the API requests that fetch the list of subscription
pools to include future-dated subscriptions when using a stage RHSM
account while leaving requests to prod RHSM unchanged.

Choose a reason for hiding this comment

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

PR Overview

This PR modifies the API calls in the pools endpoint for stage RHSM accounts to include future-dated subscription pools while keeping production behavior unchanged.

  • Append query parameter "?future=true" to the pools endpoint URL for stage environments.
  • Preserve legacy functionality for production environments.

Reviewed Changes

File Description
manifester/helpers.py Append query parameter for stage pools endpoint URL.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

manifester/helpers.py:75

  • Appending a query parameter using a fixed '?' may break if the URL already contains existing query parameters. Consider using a URL parsing or manipulation library to robustly append the parameter.
            _endpoint_url = _endpoint_url + "?future=true"
@synkd
Copy link
Collaborator Author

synkd commented Feb 27, 2025

Copilot's one suppressed suggestion here is not valid in this case as the URL will deterministically not have additional query parameters. Point taken, though.

@synkd synkd merged commit 20a9351 into SatelliteQE:master Feb 27, 2025
4 checks passed
@synkd synkd self-assigned this Feb 27, 2025
@synkd synkd added the enhancement New feature or request label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants