Skip to content

Add handful of events to the Segment.io whitelist - #263

Merged
rlucioni merged 4 commits into
masterfrom
renzo/segment-io-whitelist-expansion
Jun 26, 2013
Merged

Add handful of events to the Segment.io whitelist#263
rlucioni merged 4 commits into
masterfrom
renzo/segment-io-whitelist-expansion

Conversation

@rlucioni

Copy link
Copy Markdown
Contributor

This is a conservative expansion of the whitelist of events being routed through Segment.io. I modified the logger calls because the Segment.io API requires that dictionaries be passed to it. @sarina and @shnayder, please review?

@shnayder

Copy link
Copy Markdown

@wedaly any idea why the build failed? Looks like tests passed and pylint and pep8 are happy.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Isn't this going to change what's going into the tracking logs too? We don't want to mess with that without a really good reason.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. This change mirrors the way information is sent to the tracking logs by sequentials. I can instead put direct calls to the Segment.io API here, or only modify the information sent to Segment.io by the Logger.

@sarina

sarina commented Jun 25, 2013

Copy link
Copy Markdown
Contributor

I would try rebasing master to generate a new build, and see if that fixes the failures (that's an easy thing to try when your build fails for seemingly no reason)

@rlucioni

Copy link
Copy Markdown
Contributor Author

The build is still failing after performing a rebase to master. It looks like tests are still passing, and pylint and pep8 are good too. @wedaly, any suggestions?

…er case where data passed is not a dictionary
@rlucioni

Copy link
Copy Markdown
Contributor Author

I think the build should pass now. I wrote a Jasmine test earlier to check that Segment.io was being called as expected, but didn't change it after modifying the Logger. I've changed it and added an additional case so that I cover both cases we could see for data being passed to Segment.io's API.

@rlucioni

Copy link
Copy Markdown
Contributor Author

Turns out that wasn't enough. Can anyone recommend a solution?

@rlucioni

Copy link
Copy Markdown
Contributor Author

Mystery solved. The build is failing because of a Jasmine test which verifies that the problem_check event is logged in the check function. I've commented out that specific call to the Logger to prevent the problem_check event from firing twice per problem check. The cleanest fix is to move the Logger call from check_fd to check, satisfying existing tests and triggering the problem_check event only once per problem check.

@rlucioni

Copy link
Copy Markdown
Contributor Author

@dianakhuang, could you please take a look at this? Victor is busy.

@sarina

sarina commented Jun 26, 2013

Copy link
Copy Markdown
Contributor

This looks good to me. You mentioned that this was addressing one issue and might address https://edx-wiki.atlassian.net/browse/LMS-487. Can you provide the ticket for the first issue and, if my understanding is correct, explain in the ticket for 487 how this PR might affect it?

@rlucioni

Copy link
Copy Markdown
Contributor Author

The primary objective of this PR is not to address an issue per se, but to perform a conservative expansion of the whitelist of events being routed to Segment.io, as described here: https://edx-wiki.atlassian.net/browse/LMS-512. It was in the process of doing this that I discovered the duplicate Logger call.

I'll go ahead and note on the ticket for 487 how this PR might affect it. I'm not sure that this resolves the issue described in 487, since no one is quite sure what Jim meant by "repeated data in the tracking logs." However, calling the Logger twice in a row would certainly result in duplicate data.

@sarina

sarina commented Jun 26, 2013

Copy link
Copy Markdown
Contributor

OK makes sense. Just wanted to clarify our in person conversation in a more permanent location. Thanks 🐳 🐙 🌵

@dianakhuang

Copy link
Copy Markdown
Contributor

Looks good. 😎

rlucioni added a commit that referenced this pull request Jun 26, 2013
Add handful of events to the Segment.io whitelist
@rlucioni
rlucioni merged commit 2cd18df into master Jun 26, 2013
@rlucioni
rlucioni deleted the renzo/segment-io-whitelist-expansion branch June 26, 2013 17:41
antoviaque referenced this pull request in open-craft/openedx-platform Oct 21, 2014
diegomillan referenced this pull request in eduNEXT/edx-platform Sep 14, 2016
from Stanford-Online:giulio/actually-remove-pdf-download-open
into Stanford-Online:master
CrewS pushed a commit to CrewS/edx-platform-1 that referenced this pull request Jan 18, 2019
felipemontoya pushed a commit that referenced this pull request Jul 8, 2022
This PR adds MFE API. This is part of the work that is being done to obtain the MFE Runtime Configurations and that has been discussed in the BTR WG.

Discussion: https://discuss.openedx.org/t/how-to-use-microfrontend-in-a-multitenant-instance/6936/14?u=mafermazu
MFE Runtime configuration - eduNEXT: https://docs.google.com/document/d/1-FHIQmyeQZu3311x8eYUNMru4JX7Yb3UlqjmJxvM8do/edit?usp=sharing

feat: add lms setting to set mfe config cache (#262)

Co-authored-by: María Fernanda Magallanes Z <maria.magallanes@edunext.co>

feat: make mfe config api disabled by default (#263)

* feat: make mfe config api disabled by default

* fix: simple is better than complex

test: add mfe config tests (#264)

* test: add mfe config tests

* test: fix it and simplify it

* test: correct pylint issues

fix: correct pep 8 violations

fix: add mfe api unit test in github workflow

fix: correct unit tests

refactor: move mfe api to lms

fix: try mfe api urls without regex

fix: add app_namespace in lms urls

fix: try url without conditional

Revert "fix: try url without conditional"

This reverts commit 694aab546134b4bd9ad2642e24927b42cac24459.

fix: set enable_mfe_config_api feature to true in the tests

test: try to add failed test case

Revert "test: try to add failed test case"

This reverts commit cee6bf656ab1b96492b0b6199ddff32a6d6a65bd.

docs: improve explanation and documentation

fix: ensure the response is a json object

refactor: be consistent with the variable names

fix: allow overriding mfe api config cache timeout in production

fix: handle 404 response in view

refactor: use a guard instead if-else

feat: add the possibility to show mfe specific config
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
Tell them about verified certificates and link to ecommerce.

Also fixes AA-376 by handling the no-verified-mode-to-upgrade-to
case.
kiram15 added a commit that referenced this pull request Jul 17, 2026
…ieldsRequested filter (#263)

Removes the direct import of get_enterprise_readonly_account_fields from
openedx.features.enterprise_support.utils in accounts/api.py and replaces it
with a call to the AccountSettingsReadOnlyFieldsRequested openedx-filter.
Adds the filter to OPEN_EDX_FILTERS_CONFIG with the
enterprise.filters.accounts.AccountSettingsEnterpriseReadOnlyFieldsStep pipeline step.
Updates tests to mock the filter instead of the old enterprise_support imports.

ENT-11510

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants