-
Notifications
You must be signed in to change notification settings - Fork 43
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
[IMPAC-578] Create Widget KPIs #306
Conversation
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.
LGTM - @ouranos fyi
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.
LGTM
@xaun Is it backward compatible:
- with a MnoHub without maestrano/maestrano-hub#514 ?
- with impac-angular?
Could you rename the PR to include the JIRA number as well as mention in the description the PRs on other projects?
Thanks
Also, are we missing specs here? |
Linked PRs: |
@ouranos can you please re-review. The "backward compatiblity fix" for mnoe is a bit strange, when mno-hub is without the changes is maestrano-hub#515, mnoe kpi template errors with |
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.
Ah I had the same issue in #305
Can you check if any?
work better?
Haven't found a better way either :/
it "creates kpi alerts" do | ||
subject | ||
expect(assigns(:kpi).alerts).to eq([alert]) | ||
expect(response.code).to eq('200') |
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.
expect(response).to have_http_status(:ok)
end | ||
end | ||
|
||
it { subject; expect(response.code).to eq('200') } |
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.
it { is_expected.to have_http_status(:ok) }
…anding-pages Public Pages - fix redirect logic
@cesar-tonnoir please review. Marked WIP as the #update & #delete actions are not validated as still working / updated.