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

commit progress organisation metrics #3146 #982

Closed
wants to merge 1 commit into from
Closed

Conversation

salomon-j
Copy link
Contributor

No description provided.

@salomon-j salomon-j requested a review from chrisala June 25, 2024 00:15
def organisation = Organisation.findByOrganisationId(id)

boolean approvedOnly = true
boolean targetsOnly = false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Organisations don't have a concept of targets so we should delete targetsOnly and includeTargets

*
*/
def organisationMetrics(String id, targetsOnly = false, approvedOnly = false, List scoreIds = null, Map aggregationConfig = null, boolean includeTargets = true) {
def org = Organisation.findByOrganisationId(id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Organisations don't have a concept of targets so we should delete targetsOnly and includeTargets

List outputSummary = reportService.organisationSummary(id, toAggregate, approvedOnly, aggregationConfig) ?: []

// Add project output target information where it exists.
if (includeTargets) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Delete this section as organisations cannot have targets

@chrisala
Copy link
Collaborator

chrisala commented Jul 8, 2024

@salomon-j this got moved to a different branch didn't it? It is safe to close this?

@salomon-j
Copy link
Contributor Author

@salomon-j this got moved to a different branch didn't it? It is safe to close this?

yes it is safe to close it, I've created a new branch that was merged into master.

@salomon-j salomon-j closed this Jul 8, 2024
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.

None yet

2 participants