Skip to content

Allow user to configure which tags to display on the comparison page#284

Merged
tobami merged 6 commits into
tobami:masterfrom
Kami:configurable_displayed_revision
Mar 25, 2020
Merged

Allow user to configure which tags to display on the comparison page#284
tobami merged 6 commits into
tobami:masterfrom
Kami:configurable_displayed_revision

Conversation

@Kami
Copy link
Copy Markdown
Contributor

@Kami Kami commented Mar 10, 2020

This pull request adds new COMPARISON_TAGS setting which allows user to configure which tags to include in the executables list on the comparison page.

This comes handy in scenario where a project contains a lot of tags, but you only want to include subset of them on a comparison page.

For backward compatibility reasons, default value is None which means include all the tags (same as the previous / existing behavior).

Note On Settings Location

Right now some settings are configured via database models and other via settings.py. It would be nice to eventually come up with some convention on what setting to put where.

In reality, settings.py is a bit better from infrastructure as code perspective, but it's also possible to achieve the same end "infrastructure as code" result by version controlling model fixtures / migrations in the repository and inserting / running them on code deploy step.

Kami added 4 commits March 10, 2020 20:46
executables list.

This comes handy in scenarios where there are a lot of tags, but you
only want to list / include some of them.

NOTE: For backward compatibility reasons, default value is None which
means include all the tags.
Copy link
Copy Markdown
Owner

@tobami tobami left a comment

Choose a reason for hiding this comment

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

Nice, this should make the comparison view more usable with lots of tags

Comment thread codespeed/tests/test_views_data.py Outdated
Comment thread codespeed/settings.py Outdated
@Kami
Copy link
Copy Markdown
Contributor Author

Kami commented Mar 25, 2020

@tobami Thanks for the review.

I pushed changes which address that feedback.

@tobami
Copy link
Copy Markdown
Owner

tobami commented Mar 25, 2020

Thanks a mil! merging...

@tobami tobami merged commit f679d55 into tobami:master Mar 25, 2020
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