Skip to content

Conversation

@oskogstad
Copy link
Contributor

@oskogstad oskogstad commented Nov 13, 2025

Summary by CodeRabbit

  • Documentation
    • Added new documentation page for Service Owner Labels, including usage details, search capabilities, and technical constraints.
    • Completed system labels documentation with comprehensive specifications describing predefined labels (Default, Bin, Archive, Sent, MarkedAsUnopened), mutual exclusivity rules, and guidance on newer labeling methods.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 13, 2025

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'auto_resolve_threads'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

Two documentation pages are added to the Dialogporten reference: a new Service Owner Labels guide describing label usage, search behavior, and API endpoints, and a System Labels guide replacing placeholder content with detailed descriptions, a labels table, and deprecation guidance.

Changes

Cohort / File(s) Summary
Documentation Pages
content/dialogporten/reference/entities/serviceownerlabel/_index.en.md, content/dialogporten/reference/entities/systemlabel/_index.en.md
New Service Owner Labels documentation page with search behavior details, constraints, and embedded Swagger UI components for API operations. System Labels documentation replaces placeholder with descriptive table, mutual exclusivity notes, and deprecation guidance.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Verify accuracy of Service Owner Labels constraints and search behavior descriptions (3–255 character length, up to 20 labels per dialog)
  • Confirm System Labels table entries match API specifications and that deprecation guidance is current
  • Validate Swagger UI component syntax and endpoint references
  • Confirm content consistency across planned language variants (nb-NO, nn-NO) if applicable

Poem

📋 New labels bloom in the reference guide,
Service owners and system tags side by side,
Swagger components dance in elegant rows,
Deprecated paths fade as new wisdom flows. ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding documentation for system labels and service owner labels.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/add-systemlabel-serviceownerlabel-docs

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 81809bb and 568cbed.

📒 Files selected for processing (2)
  • content/dialogporten/reference/entities/serviceownerlabel/_index.en.md (1 hunks)
  • content/dialogporten/reference/entities/systemlabel/_index.en.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
content/**/*

⚙️ CodeRabbit configuration file

Check for links, markdown formatting, headings, grammar, and spelling in multiple languages (en-US, nb-NO, nn-NO).

Files:

  • content/dialogporten/reference/entities/serviceownerlabel/_index.en.md
  • content/dialogporten/reference/entities/systemlabel/_index.en.md
🧠 Learnings (1)
📓 Common learnings
Learnt from: lvbachmann
Repo: Altinn/altinn-studio-docs PR: 2477
File: content/authorization/migration/servicemigrationplan/_index.nb.md:4-4
Timestamp: 2025-10-27T07:48:11.643Z
Learning: In content/authorization/migration/servicemigrationplan/_index.nb.md (Norwegian Bokmål), the use of "Altinn II" in the description and "Altinn 2" in the document body is intentional and reflects actual naming conventions. This terminology difference should not be flagged as an inconsistency.
🪛 LanguageTool
content/dialogporten/reference/entities/systemlabel/_index.en.md

[style] ~18-~18: To form a complete sentence, be sure to include a subject.
Context: ...ened** | Set dialog as unopened/unread. Can be set and removed by service owner and...

(MISSING_IT_THERE)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Build and Check links
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (4)
content/dialogporten/reference/entities/systemlabel/_index.en.md (1)

1-30: Verify Norwegian language versions are included in the PR.

Per the coding guidelines, documentation should be checked for en-US, nb-NO, and nn-NO. Only the English version is present in this review. Ensure that corresponding Norwegian Bokmål (_index.nb.md) and Norwegian Nynorsk (_index.nn.md) versions are included in the PR or addressed separately.

content/dialogporten/reference/entities/serviceownerlabel/_index.en.md (3)

11-11: Verify the internal documentation link is valid.

The relref link to dialog.md#search should be verified to ensure:

  1. The dialog.md file exists in the expected location
  2. The #search anchor exists in that file for the dialog search behavior reference

20-24: Verify Swagger operation paths exist in the API specification.

The three endpoints listed (POST, GET, DELETE on /api/v1/serviceowner/dialogs/{dialogId}/context/labels) should be confirmed to:

  1. Exist in the current Dialogporten API specification
  2. Match the operation IDs and paths exactly
  3. Be documented in the Swagger/OpenAPI source

1-27: Verify Norwegian language versions are included in the PR.

Per the coding guidelines, documentation should be checked for en-US, nb-NO, and nn-NO. Only the English version is present in this review. Ensure that corresponding Norwegian Bokmål (_index.nb.md) and Norwegian Nynorsk (_index.nn.md) versions are included in the PR or addressed separately.

| **Bin** | Mutually exclusive with Default/Archive |
| **Archive** | Mutually exclusive with Default/Bin |
| **Sent** | Automatically added by Dialogporten when a transmission of type <br/>`Submission` or `Correction` is added to the dialog.<br/>Cannot be added or removed by service owners or end users |
| **MarkedAsUnopened** | Set dialog as unopened/unread. Can be set and removed by service owner and end users |
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix grammar in MarkedAsUnopened label description.

The text "Set dialog as unopened/unread. Can be set and removed by service owner and end users" is missing a subject in the second sentence. Additionally, the phrasing could be clearer about who performs the action.

Apply this diff to improve clarity and grammar:

-| **MarkedAsUnopened** | Set dialog as unopened/unread. Can be set and removed by service owner and end users                                                                                    |
+| **MarkedAsUnopened** | Marks a dialog as unopened/unread. Can be set and removed by service owners and end users                                                                                     |
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
| **MarkedAsUnopened** | Set dialog as unopened/unread. Can be set and removed by service owner and end users |
| **MarkedAsUnopened** | Marks a dialog as unopened/unread. Can be set and removed by service owners and end users |
🧰 Tools
🪛 LanguageTool

[style] ~18-~18: To form a complete sentence, be sure to include a subject.
Context: ...ened** | Set dialog as unopened/unread. Can be set and removed by service owner and...

(MISSING_IT_THERE)

🤖 Prompt for AI Agents
content/dialogporten/reference/entities/systemlabel/_index.en.md around line 18:
The label description lacks a subject and clarity; replace the current sentence
with a clear two-sentence phrasing such as "Marks the dialog as unopened/unread.
The service owner and end users can set or remove this label." ensuring correct
tense and explicit actor attribution.

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.

1 participant