-
Notifications
You must be signed in to change notification settings - Fork 21
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 Base Images #240
Add Base Images #240
Commits on Feb 8, 2023
-
Generate BaseImage resource in BaseImages context
Generated with: mix phx.gen.context BaseImages BaseImage base_images \ version:string:unique release_display_name:map description:map \ starting_version_requirement:string \ base_image_collection_id:references:base_image_collections \ tenant_id:references:tenants Copyright headers and formatting added afterwards Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 36f3fa1 - Browse repository at this point
Copy the full SHA 36f3fa1View commit details -
devices_fixtures: make fixtures unique
Generate unique handle, names and part numbers. This is helpful when using them to generate associations. Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 892b2f3 - Browse repository at this point
Copy the full SHA 892b2f3View commit details -
Extract validate_locale to Edgehog.Localization.Validation module
It needs to be used in multiple changesets Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 7723558 - Browse repository at this point
Copy the full SHA 7723558View commit details -
Adapt the generated code to the actual BaseImage requirement
In the context: - Add localization to description and display name - Change get_base_image!/1 to fetch_base_image/1 - Disallow updating version on update - Preload the associations In the migration: - Fix indexes including the tenant_id - Add non-nullability where relevant Also adapt tests, adding helpers to reduce noise Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 716d3be - Browse repository at this point
Copy the full SHA 716d3beView commit details -
Add the actual upload for the BaseImage
Store the file in a bucket and save the URL. Add relevant mocks to tests. Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 3900c2c - Browse repository at this point
Copy the full SHA 3900c2cView commit details -
base_image_collection: add base_images association
Preload it in the default base image collection preloads Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for da684dd - Browse repository at this point
Copy the full SHA da684ddView commit details -
base_images: add list_base_images_for_collection
List images for a specific base image collection Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 355ff1b - Browse repository at this point
Copy the full SHA 355ff1bView commit details -
astarte_types: rename BaseImage object to BaseImageInfo
Make room for the BaseImage object, representing an actual uploaded base image Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 4262922 - Browse repository at this point
Copy the full SHA 4262922View commit details -
GraphQL: add BaseImage object and baseImage query
Allow retrieving a baseImage given its id. Add tests for the query. Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 3ef7858 - Browse repository at this point
Copy the full SHA 3ef7858View commit details -
GraphQL: add baseImages field to baseImageCollection object
Allow retrieving the list of base images in a base image collection Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for e3604d7 - Browse repository at this point
Copy the full SHA e3604d7View commit details -
GraphQL: add createBaseImage mutation
Allow uploading a base image to a base image collection Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for c6f59da - Browse repository at this point
Copy the full SHA c6f59daView commit details -
GraphQL: add updateBaseImage mutation
Allow updating an existing BaseImage Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 6c9e22e - Browse repository at this point
Copy the full SHA 6c9e22eView commit details -
GraphQL: add deleteBaseImage mutation
Allow removing an existing base image. Update CHANGELOG since Base Image support is now complete. Signed-off-by: Riccardo Binetti <riccardo.binetti@secomind.com>
Configuration menu - View commit details
-
Copy full SHA for 02a4947 - Browse repository at this point
Copy the full SHA 02a4947View commit details