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

Consent module doublecall #3399

Merged
merged 3 commits into from
Jan 2, 2019

Conversation

olafbuitelaar
Copy link
Contributor

new PR for; #3371

@jsnellbaker
Copy link
Collaborator

@olafbuitelaar Can you fix the linting errors that were caught in the circleci check?

@olafbuitelaar
Copy link
Contributor Author

@jsnellbaker done..all green now..shouldn't these formattings not being dealt with automatically?

@jsnellbaker
Copy link
Collaborator

@olafbuitelaar Thanks for making the updates. If your text editor has a plugin for eslint, it would be captured/handled while your writing the code the changes. Depending on the setup of that plugin, when you save the file - it would automatically fix the linting errors during that save action.

Otherwise you'd need to run a gulp command to run the linting check. You could use gulp lint directly, or you could run gulp test or gulp serve (if you were testing your changes locally) as both of those commands include the gulp lint as part of the sequence.

@olafbuitelaar
Copy link
Contributor Author

@jsnellbaker i'm using VS Code with the eslint plugin..maybe something is broken, i'll check it out..maybe have a: gulp format command? just as the beauty of go?

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

@olafbuitelaar I did some initial investigating/testing on setting up an auto-fix type option with gulp-eslint. While there appears to be a flag to fix issues in the eslint config, it's only applicable to that gulp stream and it doesn't apply force an update to the original source files. It can port the files to a new place, but that's not what we really need.

If you have any ideas to make this work (or can get it working), we'd be happy to accept a PR and can review the implementation/changes.

In terms of this PR, it appears to be working fine.

@jsnellbaker jsnellbaker added needs 2nd review Core module updates require two approvals from the core team and removed needs update labels Jan 2, 2019
@jsnellbaker jsnellbaker requested a review from idettman January 2, 2019 20:09
Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

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

I was going to recommend removing all format only changes for a cleaner diff, but if @jsnellbaker is good with it, its fine with me.

@idettman idettman merged commit 320f9ed into prebid:master Jan 2, 2019
@olafbuitelaar
Copy link
Contributor Author

@idettman thanks. @jsnellbaker just made a PR which appears to work for me.
As final note on this issue, i could imagine other modules might suffer from being double registered as listener, which probably isn't good in all cases.

pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
* * check if consent hook is already set

* * removed debug code

* * formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants