Avg Release Cycle
2322 days ago
- 👕 pylint shit.
- 📦 Moved dispatch_base up and removed dispatch package
- 📦 Moved manager_base and removed manager package.
- Added append_slash class attribute to ResourceBase. Setting this attribute to True automatically appends a slash to the end of the base_url and base_url_sans_pks. Defaults to False.
- 📦 Renamed viewsets package to resources
- Many underscore fields were removed with the exception of _relationships and _links
- 0️⃣ Fields default to checking the Query string, request body and url parameters for argument if no arg_type is specified.
- Query args can be specified in relationships. Every argument available will be appended to the query string
- query args on a resource is now a list that simply pulls from the properties.
- ✂ Removed translate method from request container. Instead the request object is now injected into the translate_fields method from ripozo.viewsets.fields.base module
- Using Accept-Types instead of Content-Type.
- RetrieveList now compatible with Single resource rest mixins
- ➕ Added RetrieveRetrieveList restmixin.
- Relationships now take a no pks parameter which specifies that the resource in question should not use the pks (helpful for RetrieveRetrieveList and such)
- 🛠 Fixed bug in DictField that removed key-value pairs not explicitly specified.
- ➕ Added update_fields class property to Base Manager.
- ➕ Added DictField to top level import in fields.
- 🛠 Fixes for RetrieveRetrieveList bad translation.
- ➕ Added DictField which can translate and validate dictionary fields (and their subfields)
- Endpoints that are generated now use "__" as the default endpoint name
- ✂ Removed check fore the base rest endpoint. This doesn't take into account dispatchers having url_prefixes
- Added get method to RequestContainer which searches through the url_params, query_args, and then the body_args to find a value
- ➕ Added create_fields property to the BaseManager. This allows a user to specify which fields are valid for creation.
- related resources and linked resources named tuples
- ✂ Removed ripozo_tests dependency. It is now included in the package itself.
- Added base_url_sans_pks classproperty to ResourceBase
- Create is now an individual resource rather than a list resource
- ➕ Added CreateRetrieve, CreateRetrieveUpdate, andCreateRetrieveUpdateDelete mixins
- ✂ Removed CreateRetrieveList mixin
- Overhauled how links and relationships are generated
- Lots of bugs
- Added include_relationships keyword argument to ResourceBase init for performance reasons