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

Addons: base version to compare against (DocDiff and File Tree Diff) #11794

Merged
merged 8 commits into from
Nov 27, 2024

Conversation

humitos
Copy link
Member

@humitos humitos commented Nov 25, 2024

Add the field options_base_version to allow users specifying what's the base version they want to compare against in general for those addons that depend on a base version: DocDiff and File Tree Diff for now.

Closes #11770
Requires #11793

Add the field `options_base_version` to allow users specifying what's the base
version they want to compare against in general for those addons that depend on
a base version: DocDiff and File Tree Diff for now.

Closes #11770
@humitos humitos requested a review from a team as a code owner November 25, 2024 20:27
@humitos humitos requested a review from stsewd November 25, 2024 20:27
Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

This is using a mix of LATEST, get_default_version, and get_latest_version, we should choose one of those only.

@humitos
Copy link
Member Author

humitos commented Nov 26, 2024

Yeah, that's fine. We are creating the manifest for PR, LATEST, default, and base versions. This covers the most common cases. Then, in the API response we are using the base version or LATEST (as a fallback) to compare against.

Once we expose the options_base_version field to user, we will trigger a task to re-create the manifest when the user changes the value of this field.

@stsewd
Copy link
Member

stsewd commented Nov 26, 2024

We should have only one default for both features, this is using two different defaults for docdiff and ftd

@humitos humitos requested a review from stsewd November 26, 2024 15:52
Comment on lines -596 to -597
"base_host": "",
"base_page": "",
Copy link
Member

Choose a reason for hiding this comment

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

This will also break tests on .com

@humitos humitos merged commit e5a50bf into humitos/featureflag-to-field Nov 27, 2024
5 of 6 checks passed
@humitos humitos deleted the humitos/options-base-version branch November 27, 2024 12:09
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