Debian Publications
What does this MR do?
Debian Publications (i.e. associate a package to a project distribution).
This is item 2.4.8 of #5835 (comment 414103286)
Database
Migrations
Up
== 20201204111600 CreatePackagesDebianPublications: migrating =================
-- create_table(:packages_debian_publications, {})
-> 0.0217s
== 20201204111600 CreatePackagesDebianPublications: migrated (0.0218s) ========
Down
== 20201204111600 CreatePackagesDebianPublications: reverting =================
-- drop_table(:packages_debian_publications, {})
-> 0.0060s
== 20201204111600 CreatePackagesDebianPublications: reverted (0.0098s) ========
SQL
#unique_debian_package_name
SELECT "packages_packages".*
FROM "packages_packages"
INNER JOIN "packages_debian_publications"
ON "packages_packages"."id" = "packages_debian_publications"."package_id"
WHERE "packages_debian_publications"."distribution_id" = 2
AND "packages_packages"."package_type" = 9
AND "packages_packages"."version" IS NOT NULL
AND "packages_packages"."name" = 'foo'
AND "packages_packages"."version" = '1.0'
AND "packages_packages"."id" != 138
Explain plan: https://postgres.ai/console/gitlab/joe-instances/27
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team
Edited by Steve Abrams