-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
|
||
[root_user] | ||
ANALYTICS_OPT_OUT = false | ||
ANALYTICS_ID = "89187e1f107ebe56c35e4f864af83a90" |
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.
Hey @eastandwestwind, as far as I'm aware we don't want to commit this correct?
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.
correct, we don't want this committed. I'll update such that we don't generate it if we have the ENV var set in this ticket- #559
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.
hey @seanpreston just checking, do you have the env var FIDESOPS__ROOT_USER__ANALYTICS_ID
set to internal? We should already skip writing the analytics_id
for internal users, but lemme know if if still generates the id after you set the var.
Looks like those integration tests are also failing locally and remotely on
|
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.
looks good Sean
* Subject Request Details page [#563](https://github.com/ethyca/fidesops/pull/563) | ||
* Restart Graph from Failure [#578](https://github.com/ethyca/fidesops/pull/578) | ||
* Redis SSL Support [#611](https://github.com/ethyca/fidesops/pull/611) | ||
* Celery as a dependency for use in the execution layer [#610](https://github.com/ethyca/fidesops/pull/610) | ||
* Cache and Surface Resume/Restart Instructions [#591](https://github.com/ethyca/fidesops/pull/591) |
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.
This changelog is looking out of date?
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.
Anything specific you can see that's missing here? Merging in main
to this branch isn't yielding any conflicts or extra lines.
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.
I just thought 1.5.3 had already been released -
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.
Chatted in person, my mistake, 1.5.3 was released from a different branch
CELERY_BROKER_URL = "redis://:testpassword@redis:6379" | ||
CELERY_RESULT_BACKEND = "redis://:testpassword@redis:6379" |
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.
I missed this, is this other toml file just used for tests? Can we add a code comment about what this file is for?
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.
I was also surprised to find this. Yes this file is just used in one test to check we can load the config in from a different path. The catch is that because of the way we validate configs, we need all the required vars in here (lest it throws a ValidationError
as it should). Hence it looking the same as our actual config file.
Will add a comment 👍
@@ -1,6 +1,7 @@ | |||
alembic==1.6.5 | |||
APScheduler==3.8.0 |
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.
This reminds me we were using celery back in the day and switched to apscheduler for some onetrust things (we also use it for webhook cleanup tasks too). Nothing to change here, just noting we might revert back to celery one day here to consolidate dependencies.
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.
I thought about this too, though it seemed like something we can save for another increment.
There's also a serious discussion for us to have around ripping the Onetrust integration out entirely, since it's not used. This came up while removing PrivacyRequestRunner.submit()
calls in the next PR, since we can't effectively test the Onetrust integration.
def test_create_task(celery_app, celery_worker): | ||
@celery_app.task | ||
def multiply(x, y): | ||
return x * y | ||
|
||
# Force `celery_app` to register our new task | ||
# See: https://github.com/celery/celery/issues/3642#issuecomment-369057682 | ||
celery_worker.reload() | ||
assert multiply.run(4, 4) == 16 | ||
assert multiply.delay(4, 4).get(timeout=10) == 16 |
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.
Note to self, this uses Celery's pytest fixtures https://docs.celeryq.dev/en/stable/userguide/testing.html#function-scope
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.
There's a testing issue I'm having in the next PR where celery_app
the Pytest fixture — which will automatically use the virtualised celery_worker
instead of looking for the one via the broker (Redis, which isn't created as part of the test suite) — isn't being automatically used to process tasks invoked in tests.
That doesn't show up here since the new task is added to celery_app
directly. I've circumvented it in that in the next PR by addressing the task directly from celery_app.tasks[...]
, then calling that directly.
Purpose
This PR adds the Celery dependency back into the project.
Changes
celery
and the[pytest]
dependenciesPlease note
Checklist
CHANGELOG.md
fileCHANGELOG.md
file is being appended toUnreleased
section in an appropriate category. Add a new category from the list at the top of the file if the needed one isn't already there.Run Unsafe PR Checks
label has been applied, and checks have passed, if this PR touches any external servicesTicket
Fixes #524