Skip to content

@aruhier aruhier released this Feb 12, 2019 · 1 commit to master since this release

v1.1.7

  • Pop created and last_updated from the result when converting a mapper in dict.
  • Fixes mapper comparisons.
Assets 2
Oct 21, 2018
Bump version: 1.1.5 → 1.1.6

@aruhier aruhier released this Sep 21, 2018 · 5 commits to master since this release

v1.1.5

  • Avoid unecessary GET on each attribute when doing a PUT on a mapper
Assets 2

@aruhier aruhier released this Sep 5, 2018 · 7 commits to master since this release

v1.1.4

  • Recursive GET on the same object, to update it, used to break its route. It is now fixed
Assets 2
Sep 3, 2018
Bump version: 1.1.2 → 1.1.3

@aruhier aruhier released this Sep 3, 2018 · 11 commits to master since this release

v1.1.2

  • Transparently handle pagination.
Assets 2

@aruhier aruhier released this Jul 26, 2018 · 17 commits to master since this release

v1.1.1

  • Fix a wrong computed route when getting an id through mappers.
Assets 2

@aruhier aruhier released this Jul 5, 2018 · 19 commits to master since this release

v1.1.0

  • Fix foreign keys behavior: now, when a foreign key is detected, the attribute will be transformed as a mapper targeting the foreign object. Black magic is done by using properties to fetch this object in a JIT way: accessing the attribute for the first time will trigger a request to fetch it, and put it in a local cache to avoid any new request for next accesses.

  • Fix serialization of netbox choices: when using put() on an object containing a netbox enum (or "choice"), the integer value will be cherry-picked from the dict, then sent to netbox. Not ideal for now, could be improved later, but at least works.

  • Handle specific cases when a mapper cannot be generated after a POST. Typically, a GET on /ipam/prefixes/{id}/available-prefixes/ returns objects without ID. It is now handled, and will return the json as received.

  • post() in mappers now handles mappers as foreign keys. Doing m.post(foo=bar) when bar is a NetboxMapper is now possible, and will automatically use its id.

Documentation will be added and updated relatively to these changes.

Assets 2
Pre-release
Pre-release

@aruhier aruhier released this Jun 3, 2018 · 27 commits to dev since this release

v1.1.0b1

  • Fix foreign keys behavior: now, when a foreign key is detected, the attribute will be transformed as a mapper targeting the foreign object. Black magic is done by using properties to fetch this object in a JIT way: accessing the attribute for the first time will trigger a request to fetch it, and put it in a local cache to avoid any new request for next accesses.

  • Fix serialization of netbox choices: when using put() on an object containing a netbox enum (or "choice"), the integer value will be cherry-picked from the dict, then sent to netbox. Not ideal for now, could be improved later, but at least works.

  • Handle specific cases when a mapper cannot be generated after a POST. Typically, a GET on /ipam/prefixes/{id}/available-prefixes/ returns objects without ID. It is now handled, and will return the json as received.

Documentation will be added and updated relatively to these changes.

Assets 2

@aruhier aruhier released this May 7, 2018 · 30 commits to master since this release

v1.0.1

  • Fix requests done by mappers
  • Use bumpversion for next releases
Assets 2
You can’t perform that action at this time.