Skip to content

fix(security,vocabulary): port disability registry changes#87

Merged
emjay0921 merged 3 commits into19.0from
port/disability-registry-changes
Mar 11, 2026
Merged

fix(security,vocabulary): port disability registry changes#87
emjay0921 merged 3 commits into19.0from
port/disability-registry-changes

Conversation

@emjay0921
Copy link
Copy Markdown
Contributor

Why is this change needed?

These changes were made in openspp-modules-v2 but not yet ported to OpenSPP2. They are needed to resolve merge conflicts in openspp-modules-v2 PR #333 (refactor/openspp2-submodule).

How was the change implemented?

  • Added category_spp_disability (Disability Registry) category to spp_security/security/categories.xml with sequence 76
  • Removed data/vocabulary_disability.xml from spp_vocabulary/__manifest__.py (disability vocabulary was extracted to its own module spp_disability_registry)

New unit tests

Unit tests executed by the author

How to test manually

  • Install spp_security and verify the Disability Registry category appears in user settings
  • Install spp_vocabulary and verify it loads without referencing the removed disability vocabulary file

Related links

…pp-modules-v2

- Add disability registry category to spp_security categories
- Remove vocabulary_disability.xml from spp_vocabulary (extracted to spp_disability_registry)
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request ports essential changes related to disability registry and vocabulary management from openspp-modules-v2 to OpenSPP2. The primary goal is to resolve merge conflicts in a related refactoring PR, ensuring consistency and proper module separation for disability-related functionalities.

Highlights

  • Security Category: A new Disability Registry category (category_spp_disability) was added to spp_security/security/categories.xml with a sequence of 76.
  • Vocabulary Module: The data/vocabulary_disability.xml file was removed from spp_vocabulary/manifest.py, as the disability vocabulary has been extracted into its own dedicated module (spp_disability_registry).
Changelog
  • spp_security/security/categories.xml
    • Added a new ir.module.category record for "Disability Registry" with id="category_spp_disability" and sequence="76".
  • spp_vocabulary/manifest.py
    • Removed the data/vocabulary_disability.xml entry from the data list, reflecting its extraction to a separate module.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request introduces a new 'Disability Registry' module category in spp_security/security/categories.xml and removes the vocabulary_disability.xml entry from spp_vocabulary/__manifest__.py. A review comment notes that the new category in categories.xml is out of sequence order and should be re-positioned for better maintainability and consistency.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.53%. Comparing base (5d316fe) to head (dd13816).
⚠️ Report is 11 commits behind head on 19.0.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             19.0      #87      +/-   ##
==========================================
+ Coverage   69.16%   69.53%   +0.36%     
==========================================
  Files         632      672      +40     
  Lines       35639    37931    +2292     
==========================================
+ Hits        24650    26374    +1724     
- Misses      10989    11557     +568     
Flag Coverage Δ
fastapi 84.21% <ø> (?)
spp_aggregation 80.05% <ø> (ø)
spp_alerts 94.08% <ø> (ø)
spp_api_v2 79.96% <ø> (ø)
spp_api_v2_change_request 60.29% <ø> (ø)
spp_api_v2_cycles 71.12% <ø> (ø)
spp_api_v2_data 64.41% <ø> (ø)
spp_api_v2_entitlements 70.19% <ø> (ø)
spp_api_v2_gis 71.52% <ø> (ø)
spp_api_v2_products 66.27% <ø> (ø)
spp_api_v2_service_points 70.94% <ø> (ø)
spp_api_v2_simulation 69.61% <ø> (ø)
spp_api_v2_vocabulary 57.26% <ø> (ø)
spp_approval 50.29% <ø> (ø)
spp_area 79.26% <ø> (?)
spp_area_hdx 81.43% <ø> (ø)
spp_audit 64.19% <ø> (?)
spp_base_common 90.26% <ø> (ø)
spp_programs 45.51% <ø> (ø)
spp_security 66.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 40 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The file existed but was not referenced in the manifest, causing the
OCA file-not-used pre-commit check to fail.
Move the Disability Registry category (sequence 76) to its correct
position between Case Management (75) and Health Monitoring (77),
matching the sequence-based ordering of the file.
@emjay0921 emjay0921 merged commit 3068522 into 19.0 Mar 11, 2026
35 checks passed
@emjay0921 emjay0921 deleted the port/disability-registry-changes branch March 11, 2026 03:29
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