Skip to content

Commit

Permalink
2116: improve resilience of posthog integration (#152)
Browse files Browse the repository at this point in the history
* hold working

* documentation and cleanup

* tests

* format

* More cleanup

* remove unused imports

* Update lock file

* fix

* format

* Add cache back

* Does this work?

* test

* format

* Maybe try changing the name?

* Rename folders and files

* try

* fix import naming

* maybe fix

* Fix again

* Udpate

* another try

* format

* small fixes

* ytuytf

* Add features

* Tests pass locally

* Add change logs

* Auth changelog

* Code review comments
  • Loading branch information
collinpreston authored Apr 24, 2024
1 parent b60ac4f commit 14a8693
Show file tree
Hide file tree
Showing 30 changed files with 2,106 additions and 822 deletions.
2 changes: 2 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ python_requirements(
"pytest-lazy-fixture": ["pytest_lazyfixture"],
"python3-saml": ["onelogin"],
"social-auth-app-django": ["social_django"],
"named-enum": ["enum"],
"setuptools": ["pkg_resources"],
"olposthog": ["olposthog"]
}
)

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This repository is the home of MIT Open Learning's reusable django apps

We maintain changelogs in `changelog.d/` directories with each app. To create a new changelog for your changes, run:

- `mkdir ./src/mitol/{APPNAME}/changelog.d`
- `pants ol-project changelog create --app APPNAME`
- `APPNAME`: the name of an application directory

Expand All @@ -15,7 +16,7 @@ Then fill out the new file that was generated with information about your change

Changelogs are maintained according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
Versioning uses a date-based versioning scheme with incremental builds on the same day.
Version tags follow `{package-name}/v{version`
Version tags follow `{package-name}/v{version}`
To perform a release, run:
- `pants ol-project release create --app APPNAME --push`:
- `APPNAME`: the name of an application directory
Expand Down
1,984 changes: 1,164 additions & 820 deletions build-support/lockfiles/python-default.lockfile

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion build-support/requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ setuptools
social-auth-app-django>=5.4.0
social-auth-core>=4.5.1
toolz>=0.10.0
urllib3>=1.26.5
urllib3>=1.26.5
posthog>=3.5.0
1 change: 1 addition & 0 deletions src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target(
"openedx",
"payment_gateway",
"geoip",
"olposthog",
]
],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->

### Changed

- Added posthog application.

<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. A new scriv changelog fragment.
..
.. Uncomment the header that is right (remove the leading dots).
..
.. Removed
.. -------
..
.. - A bullet item for the Removed category.
..
.. Added
.. -----
..
.. - A bullet item for the Added category.
..
### Changed

- Added posthog application.
..
.. Deprecated
.. ----------
..
.. - A bullet item for the Deprecated category.
..
.. Fixed
.. -----
..
.. - A bullet item for the Fixed category.
..
.. Security
.. --------
..
.. - A bullet item for the Security category.
..
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
### Changed

- Added posthog application.
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->
<!--
### Fixed
- A bullet item for the Fixed category.
-->
<!--
### Security
- A bullet item for the Security category.
-->
Loading

0 comments on commit 14a8693

Please sign in to comment.