Alan Rominger
aaad634483
Only use in-memory cache for database settings, set ttl=5 ( #12166 )
...
* Only use in-memory cache for database settings
Make necessary adjustments to monkeypatch
as it is very vunerable to recursion
Remove migration exception that is now redundant
Clear cache if a setting is changed
* Use dedicated middleware for setting cache stuff
Clear cache for each request
* Add tests for in-memory cache
2022-05-10 21:58:22 -04:00
Jeff Bradberry
a3a216f91f
Fix up new Django 3.0 deprecations
...
Mostly text based: force/smart_text, ugettext_*
2022-03-07 18:11:36 -05:00
Ryan Petrello
c2ef0a6500
move code linting to a stricter pep8-esque auto-formatting tool, black
2021-03-23 09:39:58 -04:00
Rebeccah
118e1b8df1
removing memchache mentions in comments
...
remove memcached folder as it is no longer needed, also address a couple grammatical errors
2020-06-18 15:52:59 -04:00
Shane McDonald
de82c613fc
Make tests pass with current versions of things
2020-06-15 23:13:44 -04:00
Ryan Petrello
daeeaf413a
clean up unnecessary usage of the six library (awx only supports py3)
2019-01-25 00:19:48 -05:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
Ryan Petrello
44702c5cfd
fix broken shippable test suite
2017-09-06 16:12:43 -07:00
AlanCoding
9254bcaf16
Make cache compatible with encrypted settings
...
This saves the id value of the setting into the cache
if the setting is encrypted. That can then be combined
with the secret_key in order to decrypt the setting,
without having to make an additional query to the database.
2017-08-17 17:18:41 -04:00
Ryan Petrello
64a973ae02
work around a unicode handling bug in python-memcached that affects py2
...
see: https://github.com/linsomniac/python-memcached/issues/79
see: #5276
2017-02-13 16:09:31 -05:00
Ryan Petrello
1ebb641c1e
work around a DRF issue that causes CharField to cast None to "None"
...
see: #5322
2017-02-13 12:43:13 -05:00
Ryan Petrello
52ff35ab3f
fix a CTinT bug in static config parsing
...
see: #5223
2017-02-07 14:42:04 -05:00
Ryan Petrello
afc0f16e58
add a field to OPTIONS that tells if the setting came from a .py file
...
additionally, update help_text with a helpful message about this
See: #4876
2017-02-02 12:47:53 -05:00
Ryan Petrello
9d98ac5e37
clean up a few complicated mocks
2017-02-01 12:56:20 -05:00
Ryan Petrello
557bc8006d
automatically encrypt/decrypt CTinT settings that are stored in memcached
...
addresses #4246
2017-02-01 12:53:10 -05:00
Ryan Petrello
d6857cf65a
add some more inline comments and minor refactoring to awx.conf
2017-01-30 12:37:17 -05:00
Ryan Petrello
836ca21b7e
add unit tests for awx.conf
2017-01-30 12:37:11 -05:00