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

[BUG][NRPTI-1231] Fix bug where manually added records are not appearing in the nrced csv export #1234

Conversation

sggerard
Copy link
Contributor

@sggerard sggerard commented Jun 12, 2024

This PR includes the following proposed change(s):

  • Added function in backend to get act code from act title using mapping table 'acts_regulations_mapping'
  • Added logic in backend to check legislation acts when searching
  • Removed function from frontend as not to cause duplication and references in tests

@@ -25,10 +25,6 @@ export class RecordsListResolver implements Resolve<Observable<object>> {
schemaList = params.activityType.split(',');
}

if (params.act) {
params.act = RecordUtils.appendActCodesToActNames(params.act, this.factoryService);
Copy link
Contributor

Choose a reason for hiding this comment

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

appendActCodesToActNames was a function written just for this. it is used nowhere else and could be removed as well to avoid bloating the code base.

@sggerard sggerard force-pushed the 1231-bug-when-manually-adding-a-record-to-nrpti-the-record-is-not-appearing-in-the-nrced-csv-export branch from 70b54da to 9c1c1da Compare June 12, 2024 18:38
sggerard added 2 commits June 12, 2024 12:01
Signed-off-by: sggerard <sggerard1997@gmail.com>
Signed-off-by: sggerard <sggerard1997@gmail.com>
@sggerard sggerard force-pushed the 1231-bug-when-manually-adding-a-record-to-nrpti-the-record-is-not-appearing-in-the-nrced-csv-export branch from 9c1c1da to 3fa0342 Compare June 12, 2024 19:02
Copy link

sonarcloud bot commented Jun 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@sggerard sggerard merged commit 47eae93 into master Jun 12, 2024
4 checks passed
@sggerard sggerard deleted the 1231-bug-when-manually-adding-a-record-to-nrpti-the-record-is-not-appearing-in-the-nrced-csv-export branch June 12, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] When manually adding a record to NRPTI, the record is not appearing in the NRCED .csv export
2 participants