-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create read interface for analysis jobs #2206
Conversation
Size Change: +2.03 kB (+0.05%) Total Size: 3.91 MB
ℹ️ View Unchanged
|
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.
Did we get rid of all the old links to the old-client analysis jobs interface?
label: "Analysis Jobs", | ||
label: "Audio Analysis", |
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.
why the label change? Analysis Jobs was accurate
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.
Discussed offline, I will revert this change
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.
For consistency, chaning this admin.menu
label also means that the analysis-jobs.menu
label has also been changed to "Analysis Jobs"
const filterByProject: Filters<AnalysisJob> = { | ||
filter: { | ||
or: { | ||
projectId: { eq: this.project?.id }, |
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.
probably shouldn't include this filter condition if the project id is null
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.
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.
oh i see
i'd wrap this in an if statement. the mixed up order is hard to read.
filter = { filter: {}};
if (this.project) {
filter.filter = { or: ...}
}
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.
src/app/components/audio-analysis/pages/results/results.component.ts
Outdated
Show resolved
Hide resolved
export const newScriptMenuItem = menuRoute({ | ||
icon: defaultNewIcon, | ||
label: "New Script", | ||
route: scriptsMenuItem.route.add("new"), |
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.
is this going anywhere?
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.
You can access this route if you are an admin by navigating through
Admin dashboard > Scripts > New Script (in side bar)
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.
yeah but we don't have a view for it right?
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.
We do and it was automatically updated when the scripts.schema
was updated
It doesn't have any of the fancy syntax highlighting that we want to do in the future, but it exists right now
I'll double check that it works as expected
Create read interface for analysis jobs
This pull request adds support for reading analysis jobs and scripts.
Both at the admin (site wide) and project level.
Changes
Outside of scope
This PR does not add a UI for provenance models
Issues
Fixes #2207
Visual Changes
Admin analysis job list view
Analysis job project details view
Admin script list view
Script details view
Final Checklist
npm run lint
)npm run test:all
)