-
Notifications
You must be signed in to change notification settings - Fork 74
[hooks] Run link hooks in order #2417
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 0.19.5-wip | ||
## 0.20.0-wip | ||
|
||
- Bump `package:hooks` to 0.20.0. | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would have expected to see some tests that call the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should also be covered by the tests of |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 0.19.2-wip | ||
## 0.20.0-wip | ||
|
||
- Bump `package:hooks` to 0.20.0. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,15 +92,6 @@ | |
"items": { | ||
"$ref": "#/definitions/Asset" | ||
} | ||
}, | ||
"assets_for_linking": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Asset" | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
|
@@ -206,6 +197,15 @@ | |
"$ref": "#/definitions/Asset" | ||
} | ||
}, | ||
"assets_for_linking": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Asset" | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
"type": "array", | ||
"items": { | ||
|
@@ -250,6 +250,12 @@ | |
"$ref": "#/definitions/Asset" | ||
} | ||
}, | ||
"assets_from_linking": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please cover this in pkgs/hooks/test/json_schema/schema_test.dart You'll need to also add test data for the schema in pkgs/hooks/test/data There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand that test - is there documentation for what it is testing somewhere? Or do you know what has to be changed to make it pass? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test loads data, checks no validation errors, then modifies the data, and checks that the validation finds an error. All the tests print the schema and the data file used in the test name:
You can run the tests in the debugger to figure out why they are failing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Or, eyeball it with git blame on the history of the test file 😆 ) |
||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Asset" | ||
} | ||
}, | ||
"resource_identifiers": { | ||
"$ref": "#/definitions/absolutePath" | ||
} | ||
|
@@ -261,6 +267,7 @@ | |
] | ||
}, | ||
"LinkOutput": { | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/HookOutput" | ||
|
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.
Routing deserve some better documentation. For a developer seeing this for the first time it is unclear what routing is and there are no breadcrumbs in the docs to find out more about it.
Questions the docs should answer:
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 think documentation is lacking in general - so far there are little to no starting points for developers. I will also add some here.
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.
Looking through this, it seems kind of well documented though.