Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

angular.validators - work around nodeValidator=={} #4667

Merged
merged 1 commit into from
Sep 17, 2018
Merged

angular.validators - work around nodeValidator=={} #4667

merged 1 commit into from
Sep 17, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Sep 14, 2018

angular.validators only works correctly when loaded in a browser-like environment - gkaimakas/angular.validators#3

if module, exports or define are defined, the nodeValidator service ends up becoming an empty object and an attempt at exporting what would have been the service is made

this is to ensure that no such vars are defined for angular.validators

Fixes #4660 (introduced in #4622)

@djberg96 can you confirm this fixes the issue for you please? :)

angular.validators only works correctly when loaded in a browser-like environment

if module, exports or define are defined, the nodeValidator service ends up becoming an empty object and an attempt at exporting what would have been the service is made

this is to ensure that no such vars are defined for angular.validators
@miq-bot
Copy link
Member

miq-bot commented Sep 14, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/dee7d9d8ae82ef87ac504b99c55a6ce51c27b1dd 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. 🍰

@himdel
Copy link
Contributor Author

himdel commented Sep 14, 2018

We can use this, or we can wait for gkaimakas/angular.validators#4 + a npm release.
(I'm guessing merge and revert later when no longer needed is safer though.)

@himdel
Copy link
Contributor Author

himdel commented Sep 14, 2018

Update.. the PRs are merged .. so maybe.. (watching https://www.npmjs.com/package/angular.validators :))

EDIT: gkaimakas/angular.validators#7

@djberg96
Copy link
Contributor

@himdel @AparnaKarve This worked, thanks!

@mzazrivec mzazrivec self-assigned this Sep 17, 2018
@mzazrivec mzazrivec added this to the Sprint 95 Ending Sep 24, 2018 milestone Sep 17, 2018
@mzazrivec mzazrivec merged commit d8b0c53 into ManageIQ:master Sep 17, 2018
@himdel himdel deleted the fix-validator branch September 17, 2018 09:00
@himdel
Copy link
Contributor Author

himdel commented Sep 17, 2018

#4670 removes the workaround, as it's no longer needed with the new version

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot add Azure provider because validate button is greyed out
4 participants