Skip to content

feat(kotaeexpo2026): add vikailmoitus projection+cbac - #1125

Merged
japsu merged 1 commit into
mainfrom
feature/kotae2026-vikailmo
Nov 19, 2026
Merged

japsu merged 1 commit into
mainfrom
feature/kotae2026-vikailmo

Conversation

@Aketzu

@Aketzu Aketzu commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Permissions were limited in Tracon so same is required for Kotae. This uses same service user as tracon.

Summary by CodeRabbit

  • New Features
    • The event setup can now configure a private Finnish-language view of the issue-reporting survey, with optional issue, location, and contact fields, plus response IDs and timestamps.
    • A designated account can receive temporary query access to the view, starting three days before the event and ending on its final day.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The KotaeExpo 2026 setup command now configures a private vikailmoitus forms projection and grants user 22653 time-limited query access when the user and projection exist.

Changes: Station reporting setup

Layer / File(s) Summary
Configure the vikailmoitus projection
kompassi/events/kotaeexpo2026/management/commands/setup_kotaeexpo2026.py
The setup command creates or updates a private Finnish-language projection for the vikailmoitus survey. The projection has optional issue, location, and contacts fields, response ID, and creation and update timestamps.
Grant time-limited query access
kompassi/events/kotaeexpo2026/management/commands/setup_kotaeexpo2026.py
The setup command calls setup_station_access(). If user 22653 and the event’s projection exist, the command grants query access from three days before the event starts through the event end date.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: japsu

Merge Risk: Minimal · up to eea91

This change adds a private vikailmoitus projection and time-limited access for Kotae Expo 2026, mirroring the existing Tracon setup. No actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: adding a vikailmoitus projection and CBAC (access control) for Kotae Expo 2026. The raw summary confirms a new forms projection for the vikailmoitus survey and a query…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: adding a vikailmoitus projection and CBAC (access control) for Kotae Expo 2026. The raw summary confirms a new forms projection for the vikailmoitus survey and a query-access grant for the station user, so the title matches the changeset. The title is terse and uses the abbreviation CBAC, but it is specific and not vague.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

👋 New to CodeRabbit? Try chatting in this PR!

Ask questions about the changes or discuss a review suggestion by mentioning @coderabbitai in a PR comment or a reply to a CodeRabbit review comment.

Try: @coderabbitai explain the changes in this PR and what I should focus on when reviewing.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aadc5c18-dbc0-4e1a-98c6-a95ee9703982
Commits

Reviewing files that changed from the base of the PR and between 8f1020f and eea91a6.

Files selected for processing: 1

  • kompassi/events/kotaeexpo2026/management/commands/setup_kotaeexpo2026.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@japsu
japsu merged commit 3d0f5be into main Nov 19, 2026
14 checks passed
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.

2 participants