You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/09/09 10:55:22 UTC
(tooling-trusted-releases) branch arm updated (9efc3fb5 -> 3cf9e0d4)
This is an automated email from the ASF dual-hosted git repository.
alitheg pushed a change to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
from 9efc3fb5 Base PURL landing page
add 33a6fba2 Add SBOM heatmap analysis code for use in tasks
add 0dd4d7c8 Fix a download path bug and add a regression test
add 75157b6a Allow report pages to be viewed by the public
new 3cf9e0d4 Add cascade to keylink->committee FK
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
atr/get/download.py | 2 +-
atr/get/report.py | 4 +-
atr/models/results.py | 50 +++
atr/models/sql.py | 2 +-
atr/sbom/heatmap.py | 441 +++++++++++++++++++++
atr/sbom/utilities.py | 29 ++
atr/tasks/sbom.py | 23 +-
....12_c9f4a1d2.py => 0126_2026.09.09_bb0de50b.py} | 35 +-
tests/unit/test_download.py | 63 +++
tests/unit/test_report_access.py | 70 ++++
tests/unit/test_sbom_heatmap.py | 362 +++++++++++++++++
tests/unit/test_sbom_previous.py | 41 ++
12 files changed, 1077 insertions(+), 45 deletions(-)
create mode 100644 atr/sbom/heatmap.py
copy migrations/versions/{0079_2026.05.12_c9f4a1d2.py => 0126_2026.09.09_bb0de50b.py} (53%)
create mode 100644 tests/unit/test_download.py
create mode 100644 tests/unit/test_report_access.py
create mode 100644 tests/unit/test_sbom_heatmap.py
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-trusted-releases) 01/01: Add cascade to keylink->committee FK
Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
alitheg pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 3cf9e0d4cd854616d86fc06728eab54cb9828fe5
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Wed Sep 9 11:51:51 2026 +0100
Add cascade to keylink->committee FK
---
atr/models/sql.py | 2 +-
migrations/versions/0126_2026.09.09_bb0de50b.py | 53 +++++++++++++++++++++++++
2 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/atr/models/sql.py b/atr/models/sql.py
index 1780ad51..e6c0ea95 100644
--- a/atr/models/sql.py
+++ b/atr/models/sql.py
@@ -702,7 +702,7 @@ class KeyAttestable(sqlmodel.SQLModel, table=True):
# KeyLink:
class KeyLink(sqlmodel.SQLModel, table=True):
- committee_key: str = sqlmodel.Field(foreign_key="committee.key", primary_key=True)
+ committee_key: str = sqlmodel.Field(foreign_key="committee.key", primary_key=True, ondelete="CASCADE")
# Authorisation is granted to the certificate as a whole, never to an individual signing key
key_fingerprint: str = sqlmodel.Field(foreign_key="signingcertificate.fingerprint", primary_key=True)
# Set when a REFLECT-mode sync found this certificate gone from the committee's SVN KEYS file
diff --git a/migrations/versions/0126_2026.09.09_bb0de50b.py b/migrations/versions/0126_2026.09.09_bb0de50b.py
new file mode 100644
index 00000000..9a9d62ed
--- /dev/null
+++ b/migrations/versions/0126_2026.09.09_bb0de50b.py
@@ -0,0 +1,53 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+"""Add cascade delete to KeyLink on committee
+
+Revision ID: 0126_2026.09.09_bb0de50b
+Revises: 0125_2026.09.08_fbcb11d5
+Create Date: 2026-09-09 10:41:17.191167+00:00
+"""
+
+from collections.abc import Sequence
+
+from alembic import op
+
+# Revision identifiers, used by Alembic
+revision: str = "0126_2026.09.09_bb0de50b"
+down_revision: str | None = "0125_2026.09.08_fbcb11d5"
+branch_labels: str | Sequence[str] | None = None
+depends_on: str | Sequence[str] | None = None
+
+
+def upgrade() -> None:
+ with op.batch_alter_table("keylink", schema=None) as batch_op:
+ batch_op.drop_constraint(batch_op.f("fk_keylink_committee_key_committee"), type_="foreignkey")
+ batch_op.create_foreign_key(
+ batch_op.f("fk_keylink_committee_key_committee"),
+ "committee",
+ ["committee_key"],
+ ["key"],
+ ondelete="CASCADE",
+ )
+
+
+def downgrade() -> None:
+ with op.batch_alter_table("keylink", schema=None) as batch_op:
+ batch_op.drop_constraint(batch_op.f("fk_keylink_committee_key_committee"), type_="foreignkey")
+ batch_op.create_foreign_key(
+ batch_op.f("fk_keylink_committee_key_committee"), "committee", ["committee_key"], ["key"]
+ )
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org