Skip to content

Remove API url columns (that can be recalculated) from the contributors table#3747

Draft
MoralCode wants to merge 3 commits intomainfrom
ntdn/remove_cntrb_urls
Draft

Remove API url columns (that can be recalculated) from the contributors table#3747
MoralCode wants to merge 3 commits intomainfrom
ntdn/remove_cntrb_urls

Conversation

@MoralCode
Copy link
Copy Markdown
Collaborator

Description
this change removes 9 columns of API urls from the contributors table, including any data in instances (because this data is entirely determined by the repo path and can be recalculated if needed

I strongly suspect these urls are unused because many of them use an uncommon pattern to indicate what appears to be substitutions (i.e. some of them contain bits like users/jimmy{/subscriptions} which would require specialized logic in order to actually use.

These URLs came directly from the github API and are inserted into the DB when we perform contributor resolution.

The main benefit is that this helps save augur instances some space in one of the most commonly used tables

This is not an especially important/urgent PR, but I figured id file it in case other maintainers have time to review it.

NOTE: this pr does not remove any of the functionality in 8knot that inserts these URLs, so this PR shouldn't merge until after this is addressed (planned in the contributor resolution updates coming soon)

Risk
The risk of causing issues with this is:

  • zero, if the assumption that these urls are not used holds true

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…espite this being less efficient

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode added database Related to Augur's unifed data model pending changes PRs that have review comments that have been added but havent been addressed in a while labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database Related to Augur's unifed data model pending changes PRs that have review comments that have been added but havent been addressed in a while

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant