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

Background sync for datasets from CommCare HQ #41

Merged
merged 28 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
55aeeed
Prefactor: Fix import
kaapstorm Feb 29, 2024
c02e528
Prefactor: Raise DatabaseMissing
kaapstorm Feb 29, 2024
8a97e4e
Prefactor: Tweaks to `refresh_hq_datasource()`
kaapstorm Feb 29, 2024
c2acbf9
Add DataSetChangeAPI
kaapstorm Feb 29, 2024
9765307
HQRequest helper class
kaapstorm Feb 29, 2024
c05c4da
Add OAuth 2.0 server
kaapstorm Feb 29, 2024
cffc0db
Add migration for OAuth 2.0 server models
kaapstorm Feb 29, 2024
f0276dd
Rename endpoint
kaapstorm Mar 4, 2024
9f4b053
Move `create_domain_client()` into a function
kaapstorm Mar 4, 2024
d30cc79
Generate secret in its own function
kaapstorm Mar 4, 2024
ba6286d
Use `current_app.url_for()`
kaapstorm Mar 4, 2024
875ff55
Fix migration
kaapstorm Mar 4, 2024
0974df5
Delete Alembic-generated README
kaapstorm Mar 4, 2024
3ea55a6
Raise TableMissing exception
kaapstorm Mar 4, 2024
aedcb42
Sort `DOMAIN_EXCLUDED_VIEWS`
kaapstorm Mar 4, 2024
af4878f
README: Setting local user authentication
kaapstorm Mar 5, 2024
2c0c766
Docstring to explain how deletes are represented
kaapstorm Mar 6, 2024
ceb8f80
Add comment to README and config about AUTH_TYPE
kaapstorm Mar 6, 2024
a017594
Clean up unused setting
kaapstorm Mar 6, 2024
163f8c9
Merge branch 'master' into nh/bg_sync
kaapstorm Mar 6, 2024
ab8d89f
pass scheme to url_for
mkangia Mar 8, 2024
029fd9d
Get URL scheme from request
kaapstorm Mar 11, 2024
9042fb6
Determine URL scheme from `request.server`
kaapstorm Mar 11, 2024
d5830d9
More detail in exception message
kaapstorm Mar 13, 2024
96858c4
Debug logging for authlib
kaapstorm Mar 13, 2024
35d447e
What is `request`?
kaapstorm Mar 13, 2024
4c8977a
There is a method for that
kaapstorm Mar 13, 2024
49d575a
Set AUTHLIB_INSECURE_TRANSPORT (Urgh!)
kaapstorm Mar 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,19 @@ server. (Yes, it's "OAUTHLIB" this time, not "AUTHLIB" as before.)
$ export OAUTHLIB_INSECURE_TRANSPORT=1
```

### Importing UCRs using Redis and Celery

### Logging in as a local admin user

There might be situations where you need to log into Superset as a local
admin user, for example, to add a database connection. To enable local
user authentication, in `superset_config.py`, set
`AUTH_TYPE = AUTH_DB`.

To return to allowing CommCare HQ users to log in, set it back to
`AUTH_TYPE = AUTH_OAUTH`.
mkangia marked this conversation as resolved.
Show resolved Hide resolved


### Importing UCRs using Redis and Celery

Celery is used to import UCRs that are larger than
`hq_superset.views.ASYNC_DATASOURCE_IMPORT_LIMIT_IN_BYTES`. If you need
Expand Down
Loading