Skip to content

Multitenant feature - #71

Merged
petterroea merged 25 commits into
masterfrom
feature/multitenant
Sep 20, 2026
Merged

petterroea merged 25 commits into
masterfrom
feature/multitenant

Conversation

@HenrikEngen

Copy link
Copy Markdown
Member

No description provided.

@HenrikEngen
HenrikEngen requested a review from petterroea August 25, 2025 18:44
@HenrikEngen HenrikEngen self-assigned this Aug 25, 2025
@HenrikEngen HenrikEngen added the enhancement New feature or request label Aug 25, 2025
@HenrikEngen
HenrikEngen marked this pull request as draft August 25, 2025 18:44
Comment thread alembic/versions/0eee850a7ace_multitenant_test.py Outdated
op.create_foreign_key(op.f('fk_position_event_type_uuid_event_type'), 'position', 'event_type', ['event_type_uuid'], ['uuid'])
op.add_column('seatmap', sa.Column('event_type_uuid', sa.UUID(), nullable=True))
op.create_foreign_key(op.f('fk_seatmap_event_type_uuid_event_type'), 'seatmap', 'event_type', ['event_type_uuid'], ['uuid'])
op.add_column('seatmap_background', sa.Column('event_type_uuid', sa.UUID(), nullable=True))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is nullable true? are we planning to support shared seatmap backgrounds?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't think so, but as everything else in this revision, we need to start with setting nullable to True, and insert an initial event brand uuid before we can set it to false?

Comment thread phoenixRest/models/core/event_type.py Outdated
Comment thread phoenixRest/models/core/event_type.py Outdated
class EventType(Base):
__tablename__ = "event_type"

uuid = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4, unique=True, nullable=False)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we agreed to use a string instead of uuid here, since people will need to know/remember it when configuring clients?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so like a slug instead of uuid? (which is a string which we enforce to be lowercase letters and -_ or something?

Comment thread phoenixRest/views/ticket/instance.py Outdated

@HenrikEngen HenrikEngen left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That was alot of code, but looks good to me I think

(Allow, ADMIN(), 'list'),

(Allow, Authenticated, 'self'),
(Allow, Authenticated, 'create'),

@HenrikEngen HenrikEngen Sep 16, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Skal ikke authenticated users få lov til å opprette søknader?
Nvm, ser de kan opprette søknader i en annen del av koden...

Comment thread phoenixRest/views/event/__init__.py Outdated
(Allow, Everyone, 'current::get'),
(Allow, Everyone, 'get'),
(Allow, ADMIN, 'create'),
(Allow, Everyone, 'list'),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Skal everyone kunne se alle eventer?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ja, har vel alltid vært sånn?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

kanskje ikke

Comment thread phoenixRest/views/event/instance.py Outdated
(Allow, ADMIN, 'applications_get'),
(Allow, ADMIN(), 'event_update'),

(Allow, CHIEF(self.eventInstance.event_brand_uuid), 'applications_get'),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Duplikat av linje 66?

Comment thread phoenixRest/views/event/instance.py Outdated
(Allow, ADMIN(), 'event_update'),

(Allow, CHIEF(self.eventInstance.event_brand_uuid), 'applications_get'),
(Allow, ADMIN(), 'applications_get'),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Duplikat av linje 67?

(Allow, ADMIN(), 'applications_get'),

(Allow, ADMIN(), 'event_edit'),
(Allow, BRAND_ADMIN(self.eventInstance.event_brand_uuid), 'event_edit'),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Forskjell mellom event_update og event_edit?

@petterroea
petterroea marked this pull request as ready for review September 19, 2026 02:07
@petterroea

Copy link
Copy Markdown
Contributor

@HenrikEngen ready to merge?

@petterroea
petterroea merged commit f998644 into master Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants