Skip to content

Commit

Permalink
#188414493 Refactor: Bump moesifapi-python version to 1.5.3 (#35)
Browse files Browse the repository at this point in the history
* Bump versions. Update .gitignore

* Refactor: Add request headers for governance rule regex match

Refactor: Add request headers for governance rule regex match
Refactor: Update moesifapi-python to the 1.5.3 version

---------

Co-authored-by: Dylan Frankcom <[email protected]>
  • Loading branch information
keyur9 and dylanfrankcom authored Oct 29, 2024
1 parent 81fe376 commit db2e0c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ fabric.properties
# modules.xml
# .idea/misc.xml
# *.ipr
**/Pipfile
**/Pipfile.lock
4 changes: 2 additions & 2 deletions moesifasgi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def schedule_config_job(self):

def initialize_config(self):
Configuration.BASE_URI = self.settings.get("BASE_URI", "https://api.moesif.net")
Configuration.version = 'moesifasgi-python/1.0.8'
Configuration.version = 'moesifasgi-python/1.0.9'
self.LOG_BODY = self.settings.get("LOG_BODY", True)

self.app_config = AppConfig()
Expand Down Expand Up @@ -233,7 +233,7 @@ async def dispatch(self, request, call_next):
# we must fire these hooks early.
user_id = await self.logger_helper.get_user_id(self.settings, request, None, dict(request.headers), self.DEBUG)
company_id = await self.logger_helper.get_company_id(self.settings, request, None, self.DEBUG)
governed_response = self.config.govern_request(event_req, user_id, company_id, event_req.body)
governed_response = self.config.govern_request(event_req, user_id, company_id, event_req.body, request_headers)

blocked_by = None
if 'blocked_by' in governed_response:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nose>=1.3.7
moesifapi>=1.5.1
moesifpythonrequest>=0.3.3
moesifapi>=1.5.3
moesifpythonrequest>=0.3.4
starlette>=0.16.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.0.8',
version='1.0.9',

description='Moesif Middleware for Python ASGI based platforms (FastAPI & Others)',
long_description=long_description,
Expand Down Expand Up @@ -81,7 +81,7 @@
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['starlette>=0.16.0', 'moesifapi>=1.5.0', 'moesifpythonrequest>=0.3.3'],
install_requires=['starlette>=0.16.0', 'moesifapi>=1.5.3', 'moesifpythonrequest>=0.3.4'],

# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
Expand Down

0 comments on commit db2e0c1

Please sign in to comment.