Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict data retrieval from the Register API #687

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

Ahmed-Ghanam
Copy link
Contributor

@Ahmed-Ghanam Ahmed-Ghanam commented Jan 9, 2025

Description

After merging the changes for #545, some regression tests failed because the Notification API was trying to retrieve data from the Register API unnecessarily. This PR fixes the issue by ensuring the Notification API only retrieves data for entries that have at least one keyword and either a valid national identity number or organization number.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

… one or more keywords and have either a national identity number or a organization number.
Copy link

sonarqubecloud bot commented Jan 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Condition Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@Ahmed-Ghanam Ahmed-Ghanam merged commit 8b42a22 into main Jan 9, 2025
8 of 9 checks passed
@Ahmed-Ghanam Ahmed-Ghanam deleted the bugfix/skip-register-retrieval branch January 9, 2025 15:56
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