Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jathanism
Copy link
Contributor

Request to merge develop into main for Release v1.0.2

jathanism and others added 30 commits May 7, 2021 10:13
* Fix link to Docker from installation page.
* Handle unicode in view tests (fixes #415), improve view test failure messages

* Use `msg` kwarg

Co-authored-by: Jathan McCollum <[email protected]>

Co-authored-by: Jathan McCollum <[email protected]>
* Add clarity on config_contexts folder name

* Update nautobot/docs/user-guides/git-data-source.md

Co-authored-by: Glenn Matthews <[email protected]>

Co-authored-by: Jathan McCollum <[email protected]>
Co-authored-by: Glenn Matthews <[email protected]>
#430)

* Use custom scalar type for BigIntegerField. Fixes #428

* Add GraphQL object type for ContentType records

* Add support for IPAddress 'assigned_object' as a Union example; add support for VMInterface 'ip_addresses'

* Correct typo

* Add release note entries
…gContextQuerySet, ConfigContextModelQuerySet. Added testing based around device_types.
* Added testing for sync API endpoint

* Black fix

* Added if statement for power cable details page. Removed unused html file.

* Added power panel to template

* Changed comment and details order.
…devicetype

Feature #438: Config context assignment DeviceType
* Add static GraphQL type for VirtualMachine model

* Update release-notes
…L type can't be loaded (#447)

* Revise plugin GraphQL guide; add warning log message if plugin GraphQL type can't be loaded. Fixes #442

* Update release-notes

* Update nautobot/core/graphql/schema.py

Co-authored-by: Jathan McCollum <[email protected]>

Co-authored-by: Jathan McCollum <[email protected]>
* Replace markdown-include with mkdocs-include-markdown-plugin.

* Add include-markdown syntax and correct the heading offset.

A `#` should be at the top of a md file, corrected many files to
reflect this.  We are now able to do this due to the new plugin.

* Correct spelling.

* Update Changelog

* Changing changelog order.
* Fixing db timeout typing

* Updating Release Notes
* Remove incorrect max_length validator. Fixes #454

* Test create with each entry in self.create_data

* Ensure API rejects invalid IPNetwork strings

* Update release-notes

* Simpler test implementation
* More GraphQL fixes/enhancements

* Update release-note
* Inital commit

* Changed gitingore. Added full command to tasks.py. Added documentation to docs folder.

* Added help attriubutes to

* Black fix
* Adds ability to define the field_order in jobs.

* Add tests for job field order.

* Update Changelog.

* Update nautobot/docs/additional-features/jobs.md

Co-authored-by: Glenn Matthews <[email protected]>

* Update nautobot/extras/tests/test_jobs.py

Co-authored-by: Glenn Matthews <[email protected]>

* Move changelog to correct section.

* Update nautobot/docs/release-notes/version-1.0.md

Co-authored-by: Glenn Matthews <[email protected]>

Co-authored-by: Glenn Matthews <[email protected]>
Moved `dummy_plugin` to `examples/dummy_plugin` at project root.

- Added a `README.md` and a `pyproject.toml` for it
- Added it as a dev dependency to nautobot's root `pyproject.toml`
- Add a version string to the plugin
- Added a `to_csv()` method to `DummyModel`
- Asserted that unit tests ran
- Implemented generic views for DummyModel
  - Added URLs and everything
  - Added a detail view template
  - Added tables, filters, forms, search, changelog
- Updated plugin code quite a bit to use correct bases for API serializers/views to get all tests passing
- Changed base of API `DummyModelViewSet` to use `nautobot.core.api.views.ModelViewSet`
- Changed base of API `DummyModelSerializer` to use `nautobot.core.api.serializers.ValidatedModelSerializer`
- Added `url` field to API `DummyModelSerializer`
- Switched API urls to use `nautobot.core.api.OrderedDefaultRouter` to get bulk update/delete working correctly.
- Updated Invoke tasks to also run black/flake8 on `examples/`
- Added a `poetry.lock` file for `dummy_plugin`
* Add Virtual Chassis to Home Page.

* Correct Permissions.

* Update the changelog.
The default settings from the config generated from template using `nautobot-server init` were changed in v1.0.1 to look for certain settings from environment variables. This was done to facilitate a 12-factor application pattern in coordination with publishing an official Docker image.

- This fix corrects this to satisfy a working default configuration, and to support customizing settings using `NAUTOBOT_*` environment variables. This also fixes the default `ALLOWED_HOSTS` to fallback to an empty list. 
  - Additionally to bring it into parity w/ the development config (which has been around longer), the `NAUTOBOT_ALLOWED_HOSTS` environment variable now splits on a SPACE, not a comma.
- This refactors private variables for Redis settings generation from environment variables:
- Redis connection string now processed by `nautobot.core.settings_funcs.parse_redis_connection` which reads everything from the same environment variables, with the desired database as a required argument
- The username/password values are not URL-encoded beacuse the Redis.py client already does this.
- The template config at `nautobot/core/templates/nautobot_config.py.j2` is now using `parse_redis_connection`

- The test config at `nautobot/core/tests/nautobot_config.py` is now using `parse_redis_connection`
- The development config at `development/nautobot_config.py` is now using `parse_redis_connection`
- Documentation has been updated
- Also fixed a small typo I found in the docs related to `generate_secret_key`
* Remove option to overwrite init file.

The user should be explicit about overwriting the configuration file.

* Update nautobot/core/runner/runner.py

Co-authored-by: Jathan McCollum <[email protected]>

* Changing the Changelog to better match the PR.

* Black

Co-authored-by: Jathan McCollum <[email protected]>
* Fix for #396, leverate filterset error messages for more accurate checking

* Update nautobot/extras/models/relationships.py

Co-authored-by: Glenn Matthews <[email protected]>

* Check error message in unit tests for relaltionships

* Update filter key to trigger proper error

Co-authored-by: Glenn Matthews <[email protected]>
* Bring changelog up to date

* Update changelog to include #436

* Update changelog for #14, #474, #396
…`varbinary(16)` (#489)

- There is no use-case for having a variable `max_length` value on this field
…#483)

* Avoid FieldError when JobResult links to a model with no 'name' field. Allow JobResult linking via job_id.

* Unify logic, add test case
@jathanism jathanism merged commit 3a60fe6 into main May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants