No project description provided
Project description
hrin-msb
Pre-requisites for setup
pip install poetry
How To Build
poetry build
poetry config http-basic.pypi __token__ <access-token>
poetry publish
Change Log
Version 0.1.1
Version 0.1.2
Version 0.1.3
- Default serializer added to ApiView
- fixed incorrect import in _validators.py
- fixed msb_database_router
- fixed Config.is_local_env() not working
- moved devscripts -> devtools
- File Utils Added to utils/files
- "app_label" removed from "TestConfig" & "ApiTest" Classes
- Fixed Bug : 'LoggingModelManager' object has no attribute '_queryset_class'
- Fixed : Logging Model not showing any records
- Fixed : str method for base model, & removed current_timestamp method from base model
Version 0.1.4
- Fixed : ModuleNotFoundError: No module named 'pdf2docx'
- Renamed “FileGenerator“ => “FileFactory”,
- Add
create_
Prefix in FileFactory methods - Renamed MsbMetaModel -> MsbModelMetaFields
- Added validation decorators, and fixed bulk validation issuses
- Modified Logging Configuration Files
- removed utils package
- moved msb_core.wrappers.exceptions -> msb_exceptions
- Fixed : Base ApiViews and Crud Routes
- Searchparameter class refactored, search method added in ApiService Class
Version 0.1.41
- Fixed: Crud operations not working with encrypted id's
- Package dependencies updated
- Validator test cases refactored
Version 0.1.5x
-- Version 0.1.51
- dbrouter print statement removed
- datetime constants renamed (added _FORMAT to all fof them)
- Fixed the default argument in msb_exception which was causing "DESC :" to log even if desc was none
- Api service create methdhod not working correctly
- file logging handler is not registered in local env by default, we need to pass
emulate_prod=True
to add it - SearchParameter class imported in package.init.py
- Fixed : test-cases are breaking because of logs databae
- added base unittest class, and modified unit_test to inherit djangoTestCase instead of unittest
- Added Validation Schema not defined exceptions
- Fixed init_django_app error, int datatype instead of str while setting environement variable.
- Added use_django decorator to use over classes/functions
- Fixed : MsbMetaModel not working
- MsbModel meta fields accessor added
- Poetry dependencies updated
- DMY_DATE_FORMAT added
- versioning changed
-- Version 0.1.52
- Fixed : MsbMetaFields not working
- Fixed : logging model lot of exceptions are thrown if table applicationlogs is not found
- Fixed : logging model exceptions file not found
- Fixed : db_migration throwing error if no migration dire is found
- renamed use_djnago -> use_django, default value for settinfs_dir is added to "app"
- renamend _query in msb_model to db_query
- field_type, and label added to configuration model
- unique_together constraint added to ConfigurationModel
- class DjangoMigration creates migration folder if it doesn't exists
- Added automatic fixture loading
- Fixed : msb_model.str() was not able to read the primary key value
- comma removed from msbMetamodels
- Cipher now supports encryption/decryption of list items
- SearchParameter modified to supoprt autmatic filter assignment
- Refactor
msb_auth
: TokenUser,AuthResult,Constants added - Jwt Token Validation is strict now, it allows only same owner
-- Version 0.1.521
- Fixed improper import exception
-- Version 0.1.522
- Added Login Required to base viewset
- Added Config Object class to msb_dataclasses
- Added msb_http to the package
- Added MsbDatabaseRouter in init.py
- Fixed model.delete() is not working
-- Version 0.1.611
- Modified django migration script
- Aded devtools to msb_ext
- removed
use_django
decorator & addedrequires_django
decorator - added default values for metafields
- added InputFiled.time in validation schema types
-- Version 0.2.0
- Fixed Cipher.decrypt() returning bytes instead of str
- Changed
SearchParameter
class implementation. - default offset & limit fixed in
SearchParameter
class
-- Version 0.2.2
- default values removed from model metafields
- Fixed
ModuleNotFoundError: No module named '_asymmetric_cipher'
- Fixed fixtures loaded in wrong sequence
- Feature
api_response.exception()
now sends back internal server error for undefined exceptions. - Fixed Token validation error
- Added
DefaultJwtAuthSettings()
class, to unify settings across the services - Added automatic fixture loading for test cases.
-- Version 0.2.3
- msb_testing refactored
- added new package
msb_const
- Optimized imports throughout
- Refactored
msb_devtools
, removedmsb_ext.devtools
msb_devtools._exceptions
file removed- Added constant to
mab_auth._constants
-- Version 0.2.4
- Refactor : (Optimized Imports,Sonarlint warnings)
- Refactor : Moved msb_apis.wrappers -> msb_http
-- Version 0.2.5
- Refactor : removed
msb_ext
, as it served no purpose - Fixed : token validation failing due to AUD & ISS claim
- Added default fixture paths to
msb_const.paths
-- Version 0.2.6
- renamed the property
db_query
torows
, to make it easier to understand. - added a mentod to deteremine if the current environment is either dev or test env
- CrudActions.all is now the default parameter value for
.as_view()
method. - Crud routes not working for single fields
- Fixed
self.seriallizer
not working withdict()
- Implemented
list
Api, to return predefined db columns - search parameter added in crud, searchparameters class refatored
-- Version 0.2.7
- Fixed :
_list_field_names
not working with properties & relations - Added
search_validation_rules
in DefaultRules
-- Version 0.2.8
- Fixed : list api breaking for foreign keys
- Fixed : Search parameter not working with fields
- Fixed: automatic encryption of db provate fields, now you need to put
DB_ENCRYPT_PRIVATE_FIELDS = True
to achieve that.
-- Version 0.2.9
- Fixed: automatic encryption of db primary key fields, now you need to put
DB_PK_IS_PRIVATE_FIELD = True
to achieve that.
-- Version 0.2.10
- Fixed : incorrect crud routes for [list,search]
- Refactored : msb_http
- Implemented :
MsbIntraServiceRequest
class - Implemented :
ApiRouter
class
-- Version 0.2.11
- Fixed /str:id route not working
- Authentication is failing due to jwt-token owner mismatch
-- Version 0.2.12
- Fixed: Payload validation is failing for DELETE and UPDATE Request
-- Version 0.2.13
- Updated : dependencies
- Fixed : crud list was breaking if no list fields are found/declared in model
- Refactored : Added _list fields in ConfigurationModel
-- Version 0.2.14
- Fixed : env_setup->db_migration requires user input to run
-- Version 0.2.15
- Fixed : Crud list api is breaking with None
-- Version 0.2.16
- Refactored : owner verification in Jwt token can now be controlled through settings.py file, using following variables"
MSB_JWT_TRUSTED_OWNERS = []
(skips validation for the mentioned ip's) andMSB_JWT_VERIFY_OWNER = False
(turns on/off the owner verification) - Implemented :
MsbIntraServiceRequest
class in msb_http - Update :
ApiService
now hasresource_name
attribute in the class, this helps in better exception messages from default crud operations. - Refactor :
MsbIntraServiceRequest
- Update : default crud api's now returns detailed error messages
- Update : All api's now returns detailed error messages for any exceptions.
-- Version 0.2.17
- Update :
ApiService
now automatically takes the resource name if not provided. - Fixed :
MsbIntraServiceRequest
not working through api-gateway
-- Version 0.2.18
- Fixed : query parameters not working in
MsbIntraServiceRequest
- Fixed : search parameter query not working in
MsbIntraServiceRequest
- Fixed : limit and offset not working in list Api
- Refactor: _dataclasses
- Refactor : modified api_view error handler
-- Version 0.2.19
- removed Self parameter, due to compatibility issue
- Fixed : list/retrieve api bug
-- Version 0.2.2xx
- Fixed : UserRole.init() got an unexpected keyword argument 'access_type'
- Added: recover method in model
- Refactor : moved all constants to
msb_constants
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hrin_msb-0.2.51.tar.gz
(52.7 kB
view hashes)
Built Distribution
hrin_msb-0.2.51-py3-none-any.whl
(76.5 kB
view hashes)
Close
Hashes for hrin_msb-0.2.51-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c94fe5c130cf9f485a2f63877b912e0af2453e81dd871fdb24ce56cdb04572 |
|
MD5 | 651f8a10587568e4e6f4fb0c17af73b6 |
|
BLAKE2b-256 | 715a6ce40c0d292af077a4ccd73be88b3d00fe6b52a14f5f43a2bd8143c3ba8a |