Skip to content

Conversation

@longshuicy
Copy link
Member

@longshuicy longshuicy commented Jan 5, 2023

This PR does the following:

  • backend on the endpoint GET /listeners add new query parameter category to enable filtering
  • backend create new endpoint GET /listeners/category to list all the distinct categories in the whole listener collection
  • backend create new endpoint GET /listeners/defaultLabels to list all the distinct labels in the whole listener collection
  • frontend implement the filter radio button groups
  • search and filter are independent of each other: i.e. when searching filter will jump to "all"; when filtering the searchbox will clear out

I noticed that there is only "EXTRACT" as the category in most of the V1 extractors; mannually added geospatial as an example

image

@longshuicy longshuicy requested review from arunapa and tcnichol January 5, 2023 21:16
@longshuicy longshuicy linked an issue Jan 5, 2023 that may be closed by this pull request
@longshuicy longshuicy marked this pull request as ready for review January 5, 2023 21:16
@longshuicy longshuicy changed the base branch from main to 252-use-rjsf-to-dynamically-generate-extractor-parameter-forms January 5, 2023 21:17
@longshuicy
Copy link
Member Author

This is based off PR 252; just for ease of review i point this to 252

@lmarini lmarini merged commit 7436860 into 252-use-rjsf-to-dynamically-generate-extractor-parameter-forms Jan 13, 2023
@lmarini lmarini deleted the 253-implement-extractor-filtering-by-category branch January 13, 2023 21:39
lmarini added a commit that referenced this pull request Jan 17, 2023
* correctly model the extractorInfo

* plugin rjsf

* rjsf working now

* pass in datasetId and fileId to Listeners
cannot click on listener unless a file or dataset is selected

* dataset and fileid undefined in submitextraction.

* moving dispatch

* submit extractor now gets parameters correctly.

* submit does not work, sending requestBody

* adding model for EventListenerSubmit
parameters not currently included

* extraction does not submit - currently not sending parameters

* changing - sending in requestBody but still does not submit

* adding back name, does not submit

* redeem config change and put example in script

* new entry in uvicorn

* match codegen

* fix submit button and action

* correct the file/extract route request params

* fix file extraction

* fix dataset extraction submission as well

* routing key doesn't have extractor.dot there

* codegen

* fix frontend

* fix condition

* revert run uvicorn

* change 'extractor' to 'listener' in build metadata

* add stepper back

* close the modal will start over

* add listenerInfo

* add padding

* 253 implement extractor filtering by category (#264)

* seperate out the search box of listeners to another component

* backend add filter capability

* add category filter to the endpoint

* add mock filter

* automatically generate the fitler options

* filter works

* frontend handle interaction between searchbox and filters

* add an endpoint to get all the distinct categories field

* connect frontend with category endpoint

* add endpoint to list distinct default labels

* add codegen

* properly wire the filter

* 260 show extractor metadata (#274)

* fixing uvicorn, this got overwritten with local (i think by me)

* new tab, placeholder

* gets metadata with listeners
nothing shows yet

* adding separate component for each listener metadata entry, currently does not display anything

* adding component for contents and listener agent
very basic, only works for non-nested metadata

* working on nested metadata, only displays top level correctly

* json displays properly, need to put each metadata in a box and make metadata collapsible

* toggle. can hide or view metadata now

* formatting. pipenv run black app

* adding new tab to dataset for extractor metadata

* changing tab order, tab names, and setting metadata json open by default

* metadata from extractors appears in solid boxes. change in font for listener agent.

* changing tab order, names for dataset

* Added card to extracted metadata entries and fixed grid around them.

Co-authored-by: Luigi Marini <[email protected]>

Co-authored-by: toddn <[email protected]>
Co-authored-by: Todd Nicholson <[email protected]>
Co-authored-by: Luigi Marini <[email protected]>
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.

implement extractor filtering by category

3 participants