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

Support defaultNameMatch and defaultPathMatch attributes #122

Merged
merged 5 commits into from
Nov 9, 2020

Conversation

manthey
Copy link
Member

@manthey manthey commented Nov 5, 2020

On some input types (file, item, image, folder), you can specify a defaultNameMatch and defaultPathMatch attributes (much like fileExtension is used on some outputs). These are hints to the UI to find a matching file. For the Girder UI, this is done on the resource path, with the name match applying to the specific Girder resource and the path match applying to the full resource path (e.g., /user//.../).

These are regex; if you need to match the whole string, add begin and end anchors (e.g., '.png$' will match any .png, '^a.*.png$' will match a png that starts with 'a').

On some input types (file, item, image, folder), you can specify a
defaultNameMatch and defaultPathMatch attributes (much like
fileExtension is used on some outputs).  These are hints to the UI to
find a matching file.  For the Girder UI, this is done on the resource
path, with the name match applying to the specific Girder resource and
the path match applying to the full resource path (e.g., /user/<user
name>/<folder name>.../<resource name>).

These are regex; if you need to match the whole string, add begin and
end anchors (e.g., '\.png$' will match any .png, '^a.*\.png$' will match
a png that starts with 'a').
@manthey manthey merged commit 0d87665 into master Nov 9, 2020
@manthey manthey deleted the default-name-match branch November 9, 2020 13:46
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.

1 participant