Skip to content

Releases: CheeseCake87/flask-traffic

0.8.2

12 Sep 19:59

Choose a tag to compare

In the SQLORMStore the __init__ method wasn't setting the log_policy correctly. This is now fixed.

0.8.1

12 Sep 19:17

Choose a tag to compare

Closely followed by 0.8.1 from 0.8.0

Turns out I was editing in the wrong project folder when I added the BigInt variants. They are in now. See version v0.8.0 for more details on what changed.

0.8.0

12 Sep 19:04

Choose a tag to compare

Scoped each store into their own modules to fix import errors if you didn't have the library needed for each store. This was being cause by the stores package __init__.py

I've bumped to 0.8.0 as this will cause a breaking change.

In a previous version I configured the ORM mixin to work with BigInts, but I was unaware that BigInts on sqlite do not auto increment so I've added a type variant to adjust the type based on the database being used. PostgreSQL, MySQL and SQLite are the only types defined at the moment.

Some smaller changes include the max_request_path_length being added to the IGNORE_LOCALS global to fix a key error.

There are no tests written for this! 😩 -- it seems it has been sitting broken for a while now, I'm pretty busy with other things at the moment. Hopefully I find the time to get some sort of testing done for this.

0.7.0

29 May 09:35

Choose a tag to compare

⚠️ Note: I think this release is broken, I will eventually check later.. best not to use this one.

  • Change SQLStore and SQLORMStore traffic table's primary key from Int to BigInt to prevent overflow, issue #2
  • Add limiter to request_path length to prevent really long paths being stored, issue #2

Limiting of request paths can now be done in the LogPolicy

log_policy = LogPolicy(
    ...
    max_request_path_length=100,
)

0.6.1

06 Jan 17:21

Choose a tag to compare

  • RedisStore.read now returns list in reverse (newest to the top)

0.6.0

06 Jan 15:48

Choose a tag to compare

  • new store: RedisStore
  • removed sqlalchemy dependency
  • add exceptions for required packages not installed
  • add optional installation extras

0.5.0

09 Dec 12:03

Choose a tag to compare

  • add host_url to logging
  • add endpoint to logging

0.4.1

07 Dec 09:23

Choose a tag to compare

  • update TOC and minimal example on readme.

0.4.0

07 Dec 09:18

Choose a tag to compare

  • add read method to all stores.
  • update example app to include read method.

0.3.0

05 Dec 09:27

Choose a tag to compare

  • bug fix to LogPolicy.
  • bug fix to datetime conversion in SQLStore.
  • LogPolicy now has 'on_endpoints', 'skip_endpoints', 'on_status_codes',
    'skip_status_codes' attrs to skip or scope.
  • log_only_on_exception and skip_log_on_exception renamed to
    only_on_exception and skip_on_exception.