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
Merge jobs and tasks layouts (leave only 'My Tasks' and 'All Tasks' tabs) #242
Merge jobs and tasks layouts (leave only 'My Tasks' and 'All Tasks' tabs) #242
Conversation
d1e5152
to
195164a
Compare
@miq-bot remove-label wip |
@yrudman I think we'll need to add the zone filter to the tasks screen so that jobs can still be filtered by zone. |
195164a
to
9047da2
Compare
@gtanzillo 'zone' column added to |
@miq-bot add-label wip |
This pull request is not mergeable. Please rebase and repush. |
9047da2
to
9d3085f
Compare
This pull request is not mergeable. Please rebase and repush. |
520638a
to
470d3b8
Compare
78a09cc
to
e6f4f65
Compare
This pull request is not mergeable. Please rebase and repush. |
e6f4f65
to
fb81bb8
Compare
Checked commits yrudman/manageiq-ui-classic@44022db~...fb81bb8 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add-label fine/no |
@gtanzillo @dclarizio This is first iteration on merging
|
@miq-bot remove-label pending core |
@@ -376,7 +306,7 @@ def build_query_for_status(opts) | |||
end | |||
|
|||
def build_query_for_queued | |||
["(#{db_table}state=? OR #{db_table}state=?)", %w(waiting_to_start Queued)] | |||
["(miq_tasks.state=? OR miq_tasks.state=?)", %w(Waiting_to_start Queued)] |
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.
@yrudman I know this code has been there before. But in the future, these parts should be moved into
backend and UI should only call nice backend methods rather than constructing sqls like this.
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.
@mzazrivec absolutely agreed !
There is a request to provide combined view of jobs and tasks: https://www.pivotaltracker.com/story/show/125186471
This PR depends on ManageIQ/manageiq#13452, which implements changes on
Job
andMiqTask
models, changes toproduct/views/MiqTask.yamls
and data migrations.In this PR:
My Tasks
andAll Tasks
with access based on:feature => "miq_task_my_ui"
and:feature => "miq_task_all_ui"
respectively.MiqTask.yaml
.BEFORE:
AFTER:
\cc @Fryguy @gtanzillo @dclarizio