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

Add ranked sorting to insight property page #4030

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

haneslinger
Copy link
Contributor

Any background context you want to provide?

What's this PR do?

Adds a hard coded x-axis option, "Ranked" which ranks non-compliant propertyby their non compliance.

How should this be manually tested?

What are the relevant tickets?

Screenshots (if appropriate)

image

@github-actions
Copy link

github-actions bot commented May 8, 2023

Label error. Requires at least 1 of: Feature, Bug, Enhancement, Maintenance, Documentation, Performance, Do not publish. Found:

}
}
// Rank
if($scope.configs.chart_xaxis === "Ranked"){
Copy link
Contributor Author

Choose a reason for hiding this comment

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

above, L250, we're calculating x, then recalculating here should it be ranked. idk how to only do it once, as the normal x value must be calculated in the for loop so we have access to the property, and the ranked must happen after so it can sort. any thoughts?

@haneslinger haneslinger added the Enhancement Add this label if functionality was generally improved but not a full feature or maintentance. label May 8, 2023
@haneslinger haneslinger marked this pull request as ready for review May 8, 2023 21:54
@haneslinger
Copy link
Contributor Author

@kflemin repinging this.

Copy link
Contributor

@kflemin kflemin left a comment

Choose a reason for hiding this comment

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

looks great in chrome now!

@haneslinger haneslinger merged commit a6d8989 into develop Jun 5, 2023
7 checks passed
@haneslinger haneslinger deleted the Add-ranked-sorting-to-insights-page branch June 5, 2023 18:59
@haneslinger haneslinger mentioned this pull request Jun 21, 2023
10 tasks
dhaley pushed a commit that referenced this pull request Jul 21, 2023
* Add ranked sorting to insight property page

* Fix for chrome
@RDmitchell
Copy link

@haneslinger -- I guess I'm being stupid, but I don't understand what the ranking is based on ? Here is an example from the Test BPS org
image

@haneslinger
Copy link
Contributor Author

lol, I had to work with @isalanglois to figure out exactly what was being asked for here.

It the properties list where the first is the fartherest from compliance and the last is the closest.

Its not the most intuitive. Any ideas how we can make it better?

@RDmitchell
Copy link

@haneslinger -- I thought it might be something like that, but then I was confused by the left most point, because the "Distance to Target" line wasn't being displayed, maybe because it's sitting right on the axis.

I'm not sure how else what is being asked for could be shown.

It's probably one of those things that we need to get feedback from the users who wanted it to see if it meets their expectations.

Thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Add this label if functionality was generally improved but not a full feature or maintentance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants