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

feat(advanced search): specify linked resource (DSP-1587) #293

Merged
merged 31 commits into from May 25, 2021

Conversation

tobiasschweizer
Copy link
Contributor

@tobiasschweizer tobiasschweizer commented May 6, 2021

resolves DSP-1587

TODOs:

  • distinguish between specifying a resource and searching by its label to get its IRI in projects/dsp-ui/src/lib/search/advanced-search/select-property/specify-property-value/specify-property-value.component.html -> 062875c
    • [ ] form should be invalid unless the user specified at least one property on the linked resource -> seems now unnecessary to me since this can behave like EXIST when no props are specified
    • consider resource class restriction on linked resource
  • use knora-api:Resource as fallback for object class restriction on linking props
  • make linked resource var unique using a call counter
  • only allow sort criteria on top level
  • limit specification of linked resource to one level only (only main form and one additional level)
  • extend Gravsearch generation service so it can deal with linked resources

@tobiasschweizer tobiasschweizer self-assigned this May 6, 2021
@tobiasschweizer tobiasschweizer added the enhancement New feature or request label May 6, 2021
Tobias Schweizer and others added 26 commits May 6, 2021 15:53
@tobiasschweizer
Copy link
Contributor Author

tobiasschweizer commented May 19, 2021

@loicjaouen The best way to test this is using the playground app:

@tobiasschweizer
Copy link
Contributor Author

@kilchenmann I think I should document the comparison operators somewhere (user docs).
Could I add this to https://github.com/dasch-swiss/dsp-ui-lib/blob/b436a310a48a565e01c2511abdfa97252478db7f/docs/how-to-use/search/extended-search.md?

@kilchenmann
Copy link
Contributor

@kilchenmann I think I should document the comparison operators somewhere (user docs).
Could I add this to https://github.com/dasch-swiss/dsp-ui-lib/blob/b436a310a48a565e01c2511abdfa97252478db7f/docs/how-to-use/search/extended-search.md?

Yes that would be good 👍

@tobiasschweizer
Copy link
Contributor Author

@gautschr to test this in the playground app, follow these steps: https://dasch-swiss.github.io/dsp-ui-lib/how-to-contribute/#first-steps

Then you can access these two pages:

@tobiasschweizer
Copy link
Contributor Author

@flavens I tested it using the following scenario:

Anything:Thing -> another Thing -> matches (Anything:Thing -> Decimal number -> > 0.5)

Screenshot 2021-05-20 at 10 49 22

Then I added other props on the top level and also on the linked resource.

However, it is important to test it with a different ontology with some actual project data.
I'll try to test it with BEOL data rom the staging server.

@tobiasschweizer
Copy link
Contributor Author

tobiasschweizer commented May 20, 2021

@kilchenmann I think I should document the comparison operators somewhere (user docs).
Could I add this to https://github.com/dasch-swiss/dsp-ui-lib/blob/b436a310a48a565e01c2511abdfa97252478db7f/docs/how-to-use/search/extended-search.md?

Yes that would be good 👍

Could it be that https://github.com/dasch-swiss/dsp-ui-lib/blob/b436a310a48a565e01c2511abdfa97252478db7f/docs/how-to-use/search/extended-search.md is outdated? The component is now called advanced search component, also the parameters do not fit. Wouldn't it be good to have an example that fits the screenshot too?

@tobiasschweizer
Copy link
Contributor Author

I'll work on the user docs in DSP-1651

Copy link
Contributor

@gautschr gautschr left a comment

Choose a reason for hiding this comment

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

It works, thank you! I tested it locally with two different sets of data.

@tobiasschweizer
Copy link
Contributor Author

@kilchenmann @subotic The E2E test fails because of an authentication problem:

Bad credentials
https://github.com/dasch-swiss/dsp-ui-lib/pull/293/checks?check_run_id=2636678076#step:3:52

Any idea what to do about this?

@kilchenmann
Copy link
Contributor

It works fine.
We have to think about the design, but this will be part of the next iteration, right? I will move the current mockup from Balsamiq to Figma.

Screen Shot 2021-05-21 at 08 43 59

@kilchenmann
Copy link
Contributor

kilchenmann commented May 21, 2021

@kilchenmann @subotic The E2E test fails because of an authentication problem:

Bad credentials
https://github.com/dasch-swiss/dsp-ui-lib/pull/293/checks?check_run_id=2636678076#step:3:52

Any idea what to do about this?

It seems that someone deleted the repository dasch-swiss/dsp-ci-assets

@tobiasschweizer
Copy link
Contributor Author

@kilchenmann @subotic The E2E test fails because of an authentication problem:

Bad credentials
https://github.com/dasch-swiss/dsp-ui-lib/pull/293/checks?check_run_id=2636678076#step:3:52

Any idea what to do about this?

It seems that someone deleted the repository dasch-swiss/dsp-ci-assets

fixed in #296

@loicjaouen
Copy link
Collaborator

i didn't delve into the code but thanks to @tobiasschweizer instruction, was able to run a query on one of our set: request http://theatresdesociete.unil.ch/ : theatrical Representations based on a play by Molière:

advanced-search

advanced-search-result

Copy link
Collaborator

@flavens flavens left a comment

Choose a reason for hiding this comment

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

LGTM and as I told you (and André did as well), we should improve the design in a next iteration to make it more intuitive

Copy link
Collaborator

@loicjaouen loicjaouen left a comment

Choose a reason for hiding this comment

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

good to go for this round ;)

@tobiasschweizer tobiasschweizer merged commit 42e3311 into main May 25, 2021
@tobiasschweizer tobiasschweizer deleted the wip/dsp-1587-search-linked-res-2 branch May 25, 2021 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants