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

allow for multiple values of report type #462

Closed
3 tasks
hancush opened this issue Jun 27, 2019 · 6 comments
Closed
3 tasks

allow for multiple values of report type #462

hancush opened this issue Jun 27, 2019 · 6 comments

Comments

@hancush
Copy link
Collaborator

hancush commented Jun 27, 2019

metro bills can often include many kinds of report. as such, metro has defined report types as smartlogic tags, so that a report can be classified as multiple types.

  • source a canonical list of report type tags from metro.
  • define some property on the bill model to return the appropriate array of tags.
  • investigate whether haystack index needs to be updated to accommodate the change in model. see: faceting docs.
@hancush
Copy link
Collaborator Author

hancush commented Dec 6, 2019

This feels related to #463... @shrayshray, how is a term classified as a report type in Semaphore? We can likely extract this information from their API, but again, we'd want to wait on implementation until the changes to topics in our end are made in the upgrade.

@hancush
Copy link
Collaborator Author

hancush commented May 14, 2020

Same here, @shrayshray – any guidance on how terms are classified as report types in Semaphore?

@shrayshray
Copy link
Collaborator

@hancush the report types we want to use are in the Concept Scheme "Board Report Types".
Here's a note Omar and I dug up from way back about this facet:

Report Types (REPLACES: current “Filter by Report Type”) - Concept Scheme: “Board Report Types” & “System: Legistar” equals true

@hancush
Copy link
Collaborator Author

hancush commented May 22, 2020

@shrayshray I pulled concepts in the given concept scheme using this SES API query: https://cloud.smartlogic.com/svc/0dcee7c7-1667-4164-81e5-c16e46f2f74c/ses/CombinedModel/concepts/Board Report Types.json?FILTER=AT=System: Legistar

Here are the results: https://docs.google.com/spreadsheets/d/1d1qiYxcq9UunMAwG9s1Ghb2AIszIUpCvq3QhwbPCms8/edit?usp=sharing

The top of the list looks good, but some of the terms further down the list don't seem to belong. Any advice for pulling the correct list of terms from the API?

If you want to use a fixed set of board report types, instead, can you provide a list? Many thanks!

@hancush
Copy link
Collaborator Author

hancush commented May 22, 2020

Update: Connected with Steve, who gave me some super helpful guidance. Have enough to move forward here, hope to stage this change in the first half of next week!

@hancush
Copy link
Collaborator Author

hancush commented Jun 4, 2020

Support for this is live on staging, however I'm still not getting results when querying for terms with the class Board Report Type, so the facet is currently empty.

Here's my query: https://cloud.smartlogic.com/svc/0dcee7c7-1667-4164-81e5-c16e46f2f74c/ses/v1.2/CombinedModel/terms.json?FILTER=CL=Board Report Type

@shrayshray Was this class launched? (Apologies for the redundant-from-email question, just keeping threads current!)

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

No branches or pull requests

3 participants