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 feature #178 - Fix bug #185 #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

LBolzani
Copy link
Contributor

Good morning Peter,

I did an update to fix these issues:

I remain at your disposal for any further information.

Luca

Copy link
Member

@peterbanda peterbanda left a comment

Choose a reason for hiding this comment

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

Here is my two cents...

import net.codingwell.scalaguice.InjectorExtensions._

object InjectorWrapper {
private lazy val injector = GuicePlayWebTestApp(
Copy link
Member

Choose a reason for hiding this comment

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

What is this class used for? I am wondering because it's in the web-ncer project

@@ -44,6 +44,7 @@ case class DistributionWidgetSpec(
relativeValues: Boolean = false,
numericBinCount: Option[Int] = None, // TODO: rename to binCount
useDateMonthBins: Boolean = false,
orderByField: Option[Boolean] = None,
Copy link
Member

Choose a reason for hiding this comment

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

The type Option[Boolean] looks ugly. Switch to Boolean and deliver a migration script in db-update-0.9.1

@@ -44,6 +44,7 @@ case class DistributionWidgetSpec(
relativeValues: Boolean = false,
numericBinCount: Option[Int] = None, // TODO: rename to binCount
useDateMonthBins: Boolean = false,
orderByField: Option[Boolean] = None,
Copy link
Member

Choose a reason for hiding this comment

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

Also the attribute's name orderByField is rather ambiguous. What about something like orderByLabels?

if (subFilterIdValue)
displayElements.push("Sub Filter Id: " + subFilterIdValue)
if (subFilterValue)
displayElements.push("Sub Filter: " + subFilterValue)

Copy link
Member

Choose a reason for hiding this comment

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

Well, this doesn't fix ada-discovery/ada-issues#180. I don't have access to a test instance but, by looking at the code, these two lines clearly just change the display aspect (displayElements) of the widget - instead of the filter's id, its name is shown. As a matter of fact, this has no effect on the filter's representation (its association with a given widget), which is cleared out when a widget is edited.

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