This repository was archived by the owner on Aug 2, 2020. It is now read-only.
Tags: masaar/limp
Tags
[APIv6.0] Bugifxes, Improvements - Added mypy_cache to gitignore. - Bugfixed app routes generation with Realm mode. - Bugfixed app http_handler checking against obsolete get_args, post_args. - Added not_found, not_allowed handlers to app. - Updated BaseMethod.__call__, explicitly check for None values for defaults. - Bugfixed BaseMethod setting query based on Query._query value. - BaseModule._initialise now logs full extended attr path. - Updated BaseModule._initialise method to log error message for invalid Query Arg, Doc Arg. - Droped BaseModule.delete_cache. - Bugfixed BaseModule.update method deleting dot-notation attrs for doc sanitisation sequence. - Introduced BaseModule.update_cache to rebuild cached calls. - Bugfixed ATTR.validate_arg for arg union. - Introduced LIMP_MODULE interface class. - Bugfixed FILE type check in validate_attr utility. - Updated Config.modules typing to LIMP_MODULE. - Improved log messages for API-level check. - Bugfixed Config.config_data setting realm attr, Query Arg, Doc Arg to obsolete attr type. - Introduced force_admin_check Config Attr to control ADMIN doc check sequence in config_data. - Updated limpd to include CLI Arg force-admin-check. - Updated limpd to set force_admin_check Config Attr value from CLI Arg or Env Var. - Updated config_data to follow force_admin_check Config Attr value for ADMIN doc check. - Updated Data._extend_attr method to handle attr of type LIST with child attr of type ID for Doc Extension Workflow. - Bugfixed Data._extend_attr not extending attrs child to attr of type LIST. - Bugfixed Data._extend_doc returning dict instead of DictObj. - Bugfixed Setting ATTR_MOD use-case with invalid default value. - Bugfixed Setting unique_attrs missing type. - Updated Session.check_permissions to prevent object overload. - General bugfixes. - Updated typing across LIMP. - Bumped version to v6.0.4
[APIv6.0] Updated Diff Workflow, Improvements - Rebased app to use Config.modules. - Updated app handle_msg function, dropped modules arg. - Updated import_modules utility to update Config.modules with no return. - Updated BaseModule._initialise to check for empty permissions sets. - Updated BaseModule.update method to handle ATTR_MOD diff attributes. - Improved handling of Diff.create calls and respoinses. - Updated ATTR controller, removed default value from required args. - Updated Data._extend_attr to eliminate chances of iterating NonType. - Updated Test Controller to use isloated logger. - Updated Test Controller to allow access to session in Test Vars. - Updated LIMPd to not enable Debug Mode for Test Mode. - Updated Setting module to correctly handle permissions, query_args, doc_args for read, update methods. - introduced Setting.on_create, on_update handlers to update env session if doc belonging to user. - Improved typing. - Bumped version to 6.0.3.
[APIv6.0] Improvements. - Added description to Core modules, and respective attrs. - Updated Group, added create_time attr. - Updated Diff, updated methods permissions. - Updated generate_ref utility, provided case to print out ATTR._desc when available. - Updated Analytic, attr typo-corrected occurances to occurrences. - Bumped version to 6.0.2.
APIv6.0 Release # Updates: ## General: * Introduced ATTR controller. * Introduced ATTR_MOD controller. * Introduced PERM controller. * Introduced EXTN controller. * Implemented ATTR.validate_type method to check attrs BaseModule.__initialise. * Updated core package modules to implement ATTR, ATTR_MOD, PERM, EXTN, CACHE, CACHED_QUERY, ANALYTIC, Payload Sequence. * Updated all Events uses to new format. * Updated all uses for BaseModule.modules to modules Config Attr. * Improved typing. * Introduced L10N, TEST type classes. * Introduced Query.validate_arg method to validate Query Args. * Updated User.pre_create handler to create Setting docs for user per user_settings Config Attr. * Updated User.on_read handler to append to User docs relative Setting docs per user_doc_settings Config Attr. * Updated Setting type attr with user_sys to reflect Setting docs available for use to read-only. * Updated Setting with extn set for val attr bound doc __extn structure. * Updated Setting added unique_attrs. * Updated Setting read, update, delete permissions to reflect updated type attr, user-case. * Introduced Analytic module. * Updated websocket_handler to append HTTP_ORIGIN to env. * Updated Session.auth, signout to create Analytic docs for events: CONN_AUTH, USER_AUTH, CONN_REAUTH, USER_REAUTH, CONN_DEAUTH, USER_DEAUTH. * Updated Session, introduced groups attr. * Updated Session.auth method to auth user with specific groups for group-wise auth sequence. * Updated Session.reauth to reauth session with specific groups for group-wise auth sequence. * Updated Group, renamed attr bio to desc. * Introdued LIMP_EVENTS, LIMP_ENV types. * Update LIMP_DOC type. * Applied Black formatting to all LIMP controllers, core modules with skip-string-normalization option, reverted back to tabs. * Updated README. ## Conn Verification Workflow: * Updated handshake-sequence to check client_app validity as part of Conn Verification Workflow. * Added sequence to create Analytic CONN_VERIFIED event doc. ## BaseModule, BaseMethod, Utils: * Introduced generate_ref utility. * Introduced generate_attr utility based on ATTR controller. * Implemented ATTR_MOD for Permissions Check Sequence. * Updated validate_doc utility to accept skip_events, env, query args. * Updated validate_doc to check for defaults for ATTR_MOD and execute them. * Updated BaseModule.create, update method to pass additional args to validate_doc utility. * Introduced Payload Sequence by presenting payload arg to pre and on handlers. * Introduced update_values utility. * Refactored validate_attr utility to use ATTR._default to update attr_val. * Introduced return_valid_attr helper utility to facilitate Doc Opers handling for validate_attr utility. * Updated BaseModule._initialise method to update attrs _default, _extn using update_value utility. * Updated import_modules utility to load __tests__, __l10n__. * Improved BaseModule doc sanitisation sequence. * Updated BaseMethod.__call__ method to check for Analytics Sets. * Abstracted attrs default value checks from validate_attr utility unto validate_default utility. * Updated import_modules utility to add Doc Args Sets with groups arg for Session. * Introduced extract_lambda_body helper utility for generate_ref utility. * Updated validate_attr to pass scope to defaults of type ATTR_MOD. ## LIMP CLI * Introduced generate-ref tool. ## Test Controller and Workflow * Updated Test.run_test to use _limp_location Config Attr. * Dropped Test.generate_attr method. * Refactored Test to use ATTR controller for generators. * Introduced InvalidTestStepException, STEP. * Refactored Test controller to implement STEP controller. * Introduced CALC, CAST, JOIN Test Opers. * Added call_results arg to Test.process_obj to pass it to callable obj attrs for complete access to all test data. * Updated Test.validate_step to skip validating AUTH step val if detected test variable. * Updated Test.run_call to pass call_id '__TEST__' for LIMP calls. ## Config: * Introduced _limp_location Config Attr to provide global Config Attr referencing app path. * Updated config_data to update ADMIN, ANON, DEFAULT, groups docs if found and a change was detected. * Introduced user_settings, user_doc_settings Config Attr. * Updated config_data to create indexes for settings, analytics. * Introduced client_apps Config Attr. * Dropped obsolete attrs attr from config_data User, Group docs. * Introduced analytics_events Config Attr to control core analytics events. * Introduced packages_versions Config Attr to allow packages to define versions. ## Data: * Updated Data to check for attrs with new ATTR controller. * Introduced $multiply Doc Oper. * Updated Data controller with updated $append, $remove Doc Opers. * Introduced Data._extend_doc method to extend specific doc attr. * Introduced Data._extend_attr to recursively extend attrs. * Updated Data._process_results_doc to use extract_attr utility to match module extns with doc. * Introduced sequence in Data._process_results_doc to handle doc-based extension instructions. * Updated Data._process_results_doc to use Data._extend_attr rather than extending attrs in-method. ## Miscs: * Updated gitignore to ignore refs folder. * Refactored validate_attr utility. * Moved limp types classes to classes Python module. * Merged BaseModule.update_modules, __initialise methods. * Renamed BaseModule.update_modules.__initialise method to _initialise. * Updated import_modules utility to call BaseModule._initialise. * Removed modules from config_data method args. * Added missing $nin Query Arg Oper to relative definitions. * Moved Group module to group Python module. * Updated BaseMethod.return_results method to skip call_id __TEST__. * Updated BaseModule.__init__ to initialise analytics attribute. * Added log messages to MissingAttrException, InvalidAttrException, ConvertAttrException for better debugging. * Refactored LIMP version check in config_data. * Rebased all possible logger messages to f-string. # Breaking Changes: ## General * Updated app to generate routes from query_args rather than get_args, post_args. * Dropped prefixing, suffixing underscores from events names. * Added conn, heart to LIMPd-reserved names. * Dropped User attrs attr, and bound defaults, extn sets. * Bugfixed Query.__init__ failing to deepcopy Query Special Args. * Introduced Query.__repr__ to preview Query Special Args along Query Args. ## BaseModule, BaseMethod, Utils: * Updated BaseMethod to drop get_args, post_args from class init. * Updated BaseModule.__initialise to use only query_args. * Refactored all utilities to use keyword-args only. * Dropped Test.break_debugger at BaseMethod. * Renamed parse_file_obj utility to process_file_obj. * Introduced Sys Attrs Protection Sequence; Added sequence to BaseModule.__initialise method to add Doc Modifiers to all update method Permissions Sets, to protect sys attrs, user, create_time, for being updated. ## Config: * Refactored BaseModel.modules as Config Attr. * Renamed version Config Attr to api_level for more descriptive naming. ## Data: * Refactored $push, $push_unique to $append Doc Oper with $unique arg. * Renamed $pull Doc Oper to $remove. * Updated Data controller, dropped extns checks and introduced skip_extn checks. ## Test Controller and Workflow * Renamed Test.parse_obj to process_obj. # Bugfixes: ## General: * Fixed bug in Group methods permissions sets. ## BaseModule, BaseMethod, Utils: * Updated import_modules utility to set None-value Config Attr of type dict to empty dict. ## Data: * Fixed bug in Data._compile_query mutating original query object. ## Test Controller and Workflow: * Bugfixed test_collections mode bound to flushing test collections.
[APIv5.8] Improvements, Bugfixes - Added code to heart/beat call response. - Updated Data._compile_query_step method to correctly return extend user attrs. - Updated User on_read handler to correctly set empty values for user attrs extn. - Added missing $regex query oper to LIMP_QUERY type. - Updated version to 5.8.11.
[APIv5.8] Improvements, Bugfixes - Updated Gateway.send method to use all keyword-arguments. - Updated Gateway email_gateway method to accept optional email_auth over Config Attr email_auth. - Overall code improvements. - Fixed bug in BaseModule.update method read query for unique_attrs. - Updated signal_handler utility to terminate LIMPd when interrupted as workaround for Windows-aiohttp bug. - Bumped version to 5.8.8.
PreviousNext