-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement a page object accessibility dialog #17225
Conversation
1d78c78
to
09cd46a
Compare
f572080
to
afe80ec
Compare
ca110bc
to
2d12480
Compare
@jmchilton, can you resolve the conflict, please? |
dea1d92
to
df71f29
Compare
09bd415
to
554c868
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried deleted, purged, datasets in a different history, etc... and I cannot reproduce this locally. I get a very fun error if I don't own the dataset - but it is the infinite loop that I think is being worked on elsewhere - https://github.com/galaxyproject/galaxy/pull/17818/files. The problem with name is not the history dataset name but the name of a permission object. Your API isn't returning what mine is for some reason. The relevant block is:
The exception is being thrown here I think: Is there any chance I can get you to tell me what the console is reporting the API response is for offending axios request?
Does the edit permissions page when you click the pencil in the history work for the offending datasets in your case? |
Unfortunately, I purged that history when testing, however I could get the response to {
"display_name": "Dataset A",
"message": null,
"status": null,
"dataset_id": "40002f5e6ec8c7e7",
"metadata_disable": false,
"attribute_inputs": [
{
"name": "name",
"type": "text",
"label": "Name",
"value": "Dataset A"
},
{
"name": "info",
"type": "text",
"area": true,
"label": "Info",
"value": "uploaded txt file"
},
{
"name": "annotation",
"type": "text",
"area": true,
"label": "Annotation",
"optional": true,
"value": null,
"help": "Add an annotation or notes to a dataset; annotations are available when a history is viewed."
},
{
"type": "select",
"multiple": false,
"optional": true,
"name": "dbkey",
"label": "Database/Build",
"options": [
[
"unspecified (?)",
"?",
true
],
[
"A. gambiae Feb. 2003 (IAGEC MOZ2/anoGam1) (anoGam1)",
"anoGam1",
false
],
... // Trimming huge list of options for readability
],
"value": "txt",
"help": "This will change the datatype of the existing dataset but not modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset."
}
],
"datatype_disable": false,
"permission_inputs": [
{
"name": "not_shareable",
"type": "hidden",
"label": "The dataset is stored on private storage to you and cannot be shared.",
"readonly": true
}
],
"permission_disable": true
} Trying with a new history it seems to work as expected, so maybe I was so unlucky I tried with a history in a "bad state"? Or maybe is the permissions_inputs because that dataset was stored in a private object store 🤔 Let me know if I can provide more info, but I don't think this should hold the PR. Update:That was it, relocating one of the datasets to a private object store makes the error reproducible. Which kind of makes sense 😅 |
Perfect - thanks for tracking that down... and frankly thanks for running with a obscure object store that should help find a lot of things. I'll revise this with a fix! |
It was just a coincidence, but I will use it more often to test stuff 😆 |
b896379
to
b064ff2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thank you very much!
This is trickier than it sounds in some ways because objects may be sources of permission in different ways. Histories need to be accessible for invocations or collections or jobs - datasets may be referenced in different ways. The APIs for histories and workflows is pretty different than for datasets also. I think I've managed to give it a unified feel though.
xref #13926 - it doesn't fix the issue yet but it is a component I want to foreground after creating a page from an invocation. I think this PR is 90% of the work.
Builds on all my markdown working branch.
How to test the changes?
(Select all options that apply)
License