Skip to content

LIMS: Charting Story #3 - audit logs, cross folder & rendering improvements#5897

Merged
cnathe merged 22 commits intodevelopfrom
fb_charts2410
Oct 4, 2024
Merged

LIMS: Charting Story #3 - audit logs, cross folder & rendering improvements#5897
cnathe merged 22 commits intodevelopfrom
fb_charts2410

Conversation

@cnathe
Copy link
Copy Markdown
Contributor

@cnathe cnathe commented Sep 30, 2024

Rationale

This PR adds audit events for insert/update/create of charts/reports, allows for Generic Chart reports to be inherited to child folders, and improves some rendering issues.

Related Pull Requests

Changes

  • update @labkey/components package version
  • Charting updates to default tickOverlapRotation and bottom margin for long/overlapping tick labels
  • Allow for Generic Charts to be inherited in child folders
  • Save chart inherit checkbox to be hidden/shown based on user perm (to match R Report inherit checkbox perm check)
  • Add ReportAuditProvider with events for insert, update and delete of reports and charts

# Conflicts:
#	assay/package-lock.json
#	assay/package.json
#	core/package-lock.json
#	core/package.json
#	experiment/package-lock.json
#	experiment/package.json
#	pipeline/package-lock.json
#	pipeline/package.json
# Conflicts:
#	assay/package-lock.json
#	assay/package.json
#	core/package-lock.json
#	core/package.json
#	experiment/package-lock.json
#	experiment/package.json
#	pipeline/package-lock.json
#	pipeline/package.json
… match R Report inherit checkbox perm check)

DatabaseReportCache.uncache(c);

ReportAuditProvider.ReportAuditEvent event = new ReportAuditProvider.ReportAuditEvent(reportDB, descriptor, c, reportExists ? "Report updated" : "Report created");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we planning to audit for all report types, including, for example "SampleManager.SampleFinder" reports? (this comes free but just want to confirm)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also, what about hidden report, or user's private report?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Re: SampleFinder saved searches/reports - I guess I wasn't intending on auditing those saves but it seems like a fine side effect. I think auditing them might be nice unless you see a reason we shouldn't?

Re: hidden and private reports - yes, this will audit those as well. Since we are just tracking the report id, name, reportKey, and type this seems fine to me. Can you think of a reason we shouldn't audit these?

super(EVENT_NAME);

fields = new LinkedHashSet<>();
fields.add(createPropertyDescriptor(COLUMN_NAME_REPORT_ID, PropertyType.STRING, "Report Id", null, true));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't rowId integer type?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, good catch. I've changed it.

@XingY did you pull down this branch and start your server locally? If so, you'll have to do some manual database deletions to remove the domain so that it can change the reportId prop type. Let me know and I can give you my SQL script I used for the deletes locally.

cnathe added 3 commits October 1, 2024 08:08
# Conflicts:
#	core/package-lock.json
#	core/package.json
#	experiment/package-lock.json
#	experiment/package.json
@cnathe cnathe requested a review from XingY October 1, 2024 15:17
@cnathe cnathe merged commit 56062e3 into develop Oct 4, 2024
@cnathe cnathe deleted the fb_charts2410 branch October 4, 2024 20:38
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.

2 participants