Skip to content
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

Set the href for notifications emitted through WS the same as in API #4493

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

skateman
Copy link
Member

The notification mark/delete would might work without this, but it's better to have the same full href for the items as it would come from the API. I am not sure about the window.location.origin, maybe there's a better way, so pinging some JS-people for review.

Depends on: ManageIQ/manageiq#17875

@miq-bot add_reviewer @martinpovolny
@miq-bot add_reviewer @Hyperkid123
@miq-bot add_reviewer @karelhala
@miq-bot add_label pending core, bug

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1618705

@miq-bot
Copy link
Member

miq-bot commented Aug 17, 2018

Checked commit skateman@2c71a54 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍪

@skateman
Copy link
Member Author

@miq-bot rm_label pending core

@martinpovolny
Copy link
Member

I think it's ok. Ping @Hyperkid123, @karelhala or @himdel ?

@Hyperkid123
Copy link
Contributor

@skateman @martinpovolny i think it should work, but i'm not sure about support in IE. I will check it on Monday as soon as possible.

Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its working

@martinpovolny martinpovolny merged commit 8fb54e9 into ManageIQ:master Aug 17, 2018
@martinpovolny martinpovolny self-assigned this Aug 17, 2018
@skateman skateman deleted the notification-delete-mark branch August 17, 2018 16:45
@himdel
Copy link
Contributor

himdel commented Aug 19, 2018

LGTM, but curious why we would actually need this?

All the other API accesses use relative urls, and I consider that a feature :).

EDIT: never mind, this is data, not the url that gets used

@himdel
Copy link
Contributor

himdel commented Aug 19, 2018

One more thing, according to https://developer.mozilla.org/en-US/docs/Web/API/Window/location#Browser_compatibility , window.location.origin is not supported in IE10.

@skateman
Copy link
Member Author

AFAIK we support IE11 only

@himdel
Copy link
Contributor

himdel commented Aug 19, 2018

gaprindashvili/no, so.. it would make sense 👍

@skateman
Copy link
Member Author

@himdel do we support IE10 in the G-release? I thought we dropped it way earlier...

@himdel
Copy link
Contributor

himdel commented Aug 20, 2018

I don't know for sure, sorry :(

@skateman
Copy link
Member Author

@epwinchell says it was around fine or before, so it's safe to backport.
@miq-bot add_label gaprindashvili/yes
@miq-bot rm_label gaprindashvili/no

@martinpovolny martinpovolny added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants