Package: hrin-msb
hrin-msbPre-requisites for setuppip install poetrypoetry config http-basic.pypi __token__ <access-token>How To Buildpoetry buildpoetry publishChange LogVersion 0.1.1Version 0.1.2Version 0.1.3Default serializer added to ApiViewfixed incorrect import in _validators.pyfixed msb_database_routerfixed Config.is_local_env() not workingmoved devscripts -> devtoolsFile Utils Added to utils/files"app_label" removed from "TestConfig" & "ApiTest" ClassesFixed Bug : 'LoggingModelManager' object has no attribute '_queryset_class'Fixed : Logging Model not showing any recordsFixed : str method for base model, & removed current_timestamp method from base modelVersion 0.1.4Fixed : ModuleNotFoundError: No module named 'pdf2docx'Renamed “FileGenerator“ => “FileFactory”,Addcreate_Prefix in FileFactory methodsRenamed MsbMetaModel -> MsbModelMetaFieldsAdded validation decorators, and fixed bulk validation issusesModified Logging Configuration Filesremoved utils packagemoved msb_core.wrappers.exceptions -> msb_exceptionsFixed : Base ApiViews and Crud RoutesSearchparameter class refactored, search method added in ApiService ClassVersion 0.1.41Fixed: Crud operations not working with encrypted id'sPackage dependencies updatedValidator test cases refactoredVersion 0.1.5x-- Version 0.1.51dbrouter print statement removeddatetime 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 noneApi service create methdhod not working correctlyfile logging handler is not registered in local env by default, we need to passemulate_prod=Trueto add itSearchParameter class imported in package.init.pyFixed : test-cases are breaking because of logs databaeadded base unittest class, and modified unit_test to inherit djangoTestCase instead of unittestAdded Validation Schema not defined exceptionsFixed init_django_app error, int datatype instead of str while setting environement variable.Added use_django decorator to use over classes/functionsFixed : MsbMetaModel not workingMsbModel meta fields accessor addedPoetry dependencies updatedDMY_DATE_FORMAT addedversioning changed-- Version 0.1.52Fixed : MsbMetaFields not workingFixed : logging model lot of exceptions are thrown if table applicationlogs is not foundFixed : logging model exceptions file not foundFixed : db_migration throwing error if no migration dire is foundrenamed use_djnago -> use_django, default value for settinfs_dir is added to "app"renamend _query in msb_model to db_queryfield_type, and label added to configuration modelunique_together constraint added to ConfigurationModelclass DjangoMigration creates migration folder if it doesn't existsAdded automatic fixture loadingFixed : msb_model.str() was not able to read the primary key valuecomma removed from msbMetamodelsCipher now supports encryption/decryption of list itemsSearchParameter modified to supoprt autmatic filter assignmentRefactormsb_auth: TokenUser,AuthResult,Constants addedJwt Token Validation is strict now, it allows only same owner-- Version 0.1.521Fixed improper import exception-- Version 0.1.522Added Login Required to base viewsetAdded Config Object class to msb_dataclassesAdded msb_http to the packageAdded MsbDatabaseRouter in init.pyFixed model.delete() is not working-- Version 0.1.611Modified django migration scriptAded devtools to msb_extremoveduse_djangodecorator & addedrequires_djangodecoratoradded default values for metafieldsadded InputFiled.time in validation schema types-- Version 0.2.0Fixed Cipher.decrypt() returning bytes instead of strChangedSearchParameterclass implementation.default offset & limit fixed inSearchParameterclass-- Version 0.2.2default values removed from model metafieldsFixedModuleNotFoundError: No module named '_asymmetric_cipher'Fixed fixtures loaded in wrong sequenceFeatureapi_response.exception()now sends back internal server error for undefined exceptions.Fixed Token validation errorAddedDefaultJwtAuthSettings()class, to unify settings across the servicesAdded automatic fixture loading for test cases.-- Version 0.2.3msb_testing refactoredadded new packagemsb_constOptimized imports throughoutRefactoredmsb_devtools, removedmsb_ext.devtoolsmsb_devtools._exceptionsfile removedAdded constant tomab_auth._constants-- Version 0.2.4Refactor : (Optimized Imports,Sonarlint warnings)Refactor : Moved msb_apis.wrappers -> msb_http-- Version 0.2.5Refactor : removedmsb_ext, as it served no purposeFixed : token validation failing due to AUD & ISS claimAdded default fixture paths tomsb_const.paths-- Version 0.2.6renamed the propertydb_querytorows, to make it easier to understand.added a mentod to deteremine if the current environment is either dev or test envCrudActions.all is now the default parameter value for.as_view()method.Crud routes not working for single fieldsFixedself.seriallizernot working withdict()ImplementedlistApi, to return predefined db columnssearch parameter added in crud, searchparameters class refatored-- Version 0.2.7Fixed :_list_field_namesnot working with properties & relationsAddedsearch_validation_rulesin DefaultRules-- Version 0.2.8Fixed : list api breaking for foreign keysFixed : Search parameter not working with fieldsFixed: automatic encryption of db provate fields, now you need to putDB_ENCRYPT_PRIVATE_FIELDS = Trueto achieve
that.-- Version 0.2.9Fixed: automatic encryption of db primary key fields, now you need to putDB_PK_IS_PRIVATE_FIELD = Trueto achieve
that.-- Version 0.2.10Fixed : incorrect crud routes for [list,search]Refactored : msb_httpImplemented :MsbIntraServiceRequestclassImplemented :ApiRouterclass-- Version 0.2.11Fixed /str:idroute not workingAuthentication is failing due to jwt-token owner mismatch-- Version 0.2.12Fixed: Payload validation is failing for DELETE and UPDATE Request-- Version 0.2.13Updated : dependenciesFixed : crud list was breaking if no list fields are found/declared in modelRefactored : Added _list fields in ConfigurationModel-- Version 0.2.14Fixed : env_setup->db_migration requires user input to run-- Version 0.2.15Fixed : Crud list api is breaking with None-- Version 0.2.16Refactored : 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 :MsbIntraServiceRequestclass in msb_httpUpdate :ApiServicenow hasresource_nameattribute in the class, this helps in better exception messages from
default crud operations.Refactor :MsbIntraServiceRequestUpdate : default crud api's now returns detailed error messagesUpdate : All api's now returns detailed error messages for any exceptions.-- Version 0.2.17Update :ApiServicenow automatically takes the resource name if not provided.Fixed :MsbIntraServiceRequestnot working through api-gateway-- Version 0.2.18Fixed : query parameters not working inMsbIntraServiceRequestFixed : search parameter query not working inMsbIntraServiceRequestFixed : limit and offset not working in list ApiRefactor: _dataclassesRefactor : modified api_view error handler-- Version 0.2.19removed Self parameter, due to compatibility issueFixed : list/retrieve api bug-- Version 0.2.2xxFixed : UserRole.init() got an unexpected keyword argument 'access_type'Added: recover method in modelRefactor : moved all constants tomsb_constants