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

Add image testing backend #244

Merged
merged 31 commits into from
Jan 15, 2025
Merged

Add image testing backend #244

merged 31 commits into from
Jan 15, 2025

Conversation

omar-selo
Copy link
Collaborator

Description

Adds backend changes required for image artefact family.

Resolved issues

Resolves https://warthogs.atlassian.net/browse/RTW-301

Documentation

Web service API changes

Endpoints that return Artefacts now additionally include keys specific to images. This is however not a breaking changes to existing clients.

Tests

Added some tests and updated others

@omar-selo omar-selo requested a review from rpbritton January 14, 2025 14:10
@omar-selo
Copy link
Collaborator Author

worth noting that I tried to create an abstract Artefact class that each family subclasses from (Snap, Deb, Image, Charm). But that ended up creating a huge change and in many places separate logic that could be grouped together. I decided to remove that change

@omar-selo omar-selo force-pushed the add-image-testing-backend branch from d5dcc08 to 25bd3e5 Compare January 15, 2025 11:06
"name",
"version",
"track",
postgresql_where=column("family") == FamilyName.charm.name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is nice, I was trying to do this when adding charms but can't remember why it was causing me grief, something to do with trying to join another table. Was family moved?

Copy link
Collaborator

@rpbritton rpbritton left a comment

Choose a reason for hiding this comment

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

I think all the additions are consistent with the implementations of the other families, and the refactors are great improvements. No questions from me.

@omar-selo omar-selo merged commit b930f02 into main Jan 15, 2025
1 check passed
@omar-selo omar-selo deleted the add-image-testing-backend branch January 15, 2025 15:21
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