YangCatalog / backend

YANG Catalog's REST API and internal module processing pipeline
https://yangcatalog.org
Apache License 2.0
2 stars 11 forks source link

Redis databases code readability #783

Closed dmytro-kyrychenko closed 1 year ago

dmytro-kyrychenko commented 1 year ago

Also need to add this line to config: redis-dir=${var}/redis

Also add such json file to this redis-dir folder, introduced above:

redis_databases.json

{
  "SECRETS": 0,
  "MODULES": 1,
  "USERS": 2,
  "VENDORS": 4,
  "TEMP_MODULES": 5,
  "TEST_MODULES": 6,
  "USERS_NOTIFICATIONS": 7,
  "TEST_VENDORS": 9
}
codecov[bot] commented 1 year ago

Codecov Report

Merging #783 (055ec2d) into develop (7922bcf) will increase coverage by 0.02%. The diff coverage is 100.00%.

:exclamation: Current head 055ec2d differs from pull request most recent head 83c491c. Consider uploading reports for the commit 83c491c to get more accurate results

@@             Coverage Diff             @@
##           develop     #783      +/-   ##
===========================================
+ Coverage    77.74%   77.76%   +0.02%     
===========================================
  Files          111      112       +1     
  Lines        11409    11421      +12     
===========================================
+ Hits          8870     8882      +12     
  Misses        2539     2539              
Impacted Files Coverage Δ
redisConnections/redisConnection.py 92.79% <100.00%> (-0.04%) :arrow_down:
redisConnections/redis_enum.py 100.00% <100.00%> (ø)
...Connections/redis_user_notifications_connection.py 100.00% <100.00%> (ø)
redisConnections/redis_users_connection.py 96.62% <100.00%> (+0.03%) :arrow_up:
...isConnections/tests/test_redisModulesConnection.py 99.62% <100.00%> (+<0.01%) :arrow_up:
tests/test_celery_tasks.py 92.33% <100.00%> (+0.02%) :arrow_up:
dmytro-kyrychenko commented 1 year ago

797