Repository navigation
Implement excluded_topics and excluded_opinions in the report UI and fix summary topic count - #119
Conversation
d4b6dde to
5f251ab
Compare
|
Hey, thanks for catching and implementing this @digitalWestie! I'm not able to make edits here, so wondering if you can make a few small changes so I can merge, or I can cherrypick and update if you prefer.
|
5f251ab to
2fc630f
Compare
|
@peterwgnd Rebased and introduced the fall back as suggested. Working as expected using the backwards compatible option:-
|
|
Looks great, Rory, thank you! |


Summary
excluded_topicsandexcluded_opinionsinsrc/report_ui/data.jsfrom config.jsontopicsIdentifiedfrom the filtered tree (opinionsGrouped.length) instead of the unfilteredsummary.sub_contents.length-- this has side effect of correcting the the topic count in the executive summary cardreport_uiREADMEs. Also updateconfig.jsonto use snake case to be consitent with the other config.json options e.g.overview_chartornumber_of_top_opinions.Test plan
Manual check was performed by running
cd src/report_ui && npm run inline. This drew onsrc/report_ui/input/opinions.csv(community transport feedback).Topics in that file: Challenges in Current Transport Systems, Geographic Coverage and Accessibility, Use Cases and Purpose of Community Transport, Benefits of Minibus Services, and Preferences for Community Transport Models.
Built with
excluded_topicsset to one of those (e.g. Challenges in Current Transport Systems) and confirmed it disappeared from the overview and topic sections while the others remained; topic count matched the filtered set.Using the same
config.jsonbefore and after:before
after