Skip to content

Conversation

@fstagni
Copy link
Contributor

@fstagni fstagni commented Dec 18, 2025

No description provided.

@fstagni fstagni force-pushed the table_extensions_examples branch from d6e65f9 to 7d97288 Compare December 18, 2025 16:16
# NOTE: We need to remove the original Jobs table from metadata because
# GubbinsJobs modifies an existing column (job_name size from 128 to 512).
# Simple inheritance works fine for ADDING columns (see GubbinsInputData below),
# but MODIFYING existing columns in SQLAlchemy requires replacing the table definition.
Copy link
Member

Choose a reason for hiding this comment

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

MODIFYING existing columns

IIRC we had said that we didn't want to support this, do you have a use case in mind?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Personally I do not have a use case for this, but such an example was asked by CMS.

Copy link
Contributor

Choose a reason for hiding this comment

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

We explicitly said we would not do that because it has too many implications. We will even have to modify some LHCb database to follow that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't (nor @aldbr , and probably no-one can) remember that this was said, and it is not in https://diracx.diracgrid.org/en/latest/dev/explanations/extensions/

So, this explicitly shows that at the moment this is the way to go if someone wants to do this.

Copy link
Contributor

Choose a reason for hiding this comment

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

We explicitly said we would not do that because it has too many implications. We will even have to modify some LHCb database to follow that.

Is that written anywhere in the documentation?
I found that block of documentation about DB extensions, but it's not explicitly mentioned: https://diracx.diracgrid.org/en/latest/dev/explanations/extensions/#extended-db

If not written anywhere, I think we should clearly mention it there (this section of the documentation is probably the right place)

(In the future, as we discussed, this should likely go through a Github Issue for discussion first)

@fstagni fstagni marked this pull request as ready for review December 19, 2025 09:24
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.

4 participants