-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix IPAM migration 0050 name and contents to match develop #6395
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HanlinMiao
approved these changes
Oct 18, 2024
smk4664
added a commit
that referenced
this pull request
Oct 24, 2024
* Fixed appropriate cable status coloring not applied for DeviceModule*Table rows in dark mode. (#6128) * Fixed appropriate cable status coloring not applied for DeviceModule*Table rows in dark mode. * ruff fix * address PR feedback * address PR feedback * ruff fix * Fix regression #6131 (#6132) * Added missing DynamicGroup content to Device Detail View and Software Image File Detail View (#6148) * Added missing DynamicGroup content to Device Detail View. * Added missing DynamicGroup content to Software Image Detail View. * modified changelog * modified changelog * Fix some points of non-determinism in factory data (#6147) --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Added Status Field to VRF model (#6130) * Add status field to VRF (#6120) * Add status field to VRF (#6120) * make status field nullable and blankable * changelog * address PR feedback --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> * Handle time zones more correctly with ScheduledJob (#6122) * Fix #5591 - handle time zones more correctly with ScheduledJob. * Refinements and some test coverage * 1 line of bug fix, 300 lines of testing * Python 3.8 use backports.zoneinfo * Apply suggestions from code review Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Diversify test data a bit --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * release/2.3.2 * Avoid exceptions when encountering a model that doesn't inherit from BaseModel (#6175) * Avoid exceptions when encountering a model that doesn't inherit from BaseModel * Change fragment * Rotate collapse icon (#6160) * Rotate collapse icon on homepage * Add changelog --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * 5180 - Search by Scheduled Job Name in Job Results (#6167) * Filter Job Results by Scheduled Job * Fix ruff * Add Scheduled Job to Job Results table * Remove unnecessary widget * Fix integration tests * Add action buttons to Scheduled Jobs * Remove ScheduledJob factory * Ruff fix * unittest fix --------- Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * merge latest PRs and generated release notes * Bump cryptography from 43.0.0 to 43.0.1 (#6182) * Bump cryptography from 43.0.0 to 43.0.1 Bumps [cryptography](https://github.com/pyca/cryptography) from 43.0.0 to 43.0.1. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@43.0.0...43.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Change fragment * Update changes/6182.security --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * updated release notes after 6182 * version bump * migration conflict * ruff * comment out generic tests for TreeNodeMultipleChoiceFilter * not enough JobQueues with tenant groups * Fix #6184 (#6186) * add display property to Prefix model (#6190) * add display property to Prefix model * ruff format & add changelog * remove unused test code * modify path parameter in test client `.get` call --------- Co-authored-by: Brandon Donohoe <brandon.donohoe@networktocode.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update Lock-file Patch Releases for Develop (develop) (#6084) * Update Lock-file Patch Releases for Develop * Pyproject.toml and change fragment --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Add User to override the UI view for Time Zone (#6156) * add middleware * Add testcase * Update nautobot/core/middleware.py * mod test * fix bug incorrect timezone displayed in schedule form * move Timezone update UI to Preference * PR feedback * Update 3263.added Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Updates example invoke.yml (#6155) * Updates example invoke.yml * Adds fragment * Changes all options to comments * Cleans up comments * Updates changelog wording --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix #6197 (#6202) Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix performance regression in web_request_context (#6206) * Fix performance regression in web_request_context * Alternate approach, a bit more efficient --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Added JobQueue UI/Refactor Job Code to use JobQueue models (#6154) * JobQueue UI * fix some JobQueue related forms and added view unittests * added JobQueue to navigation menu and added jobs filter to JobQueueFilterSet * added JobQueue field to JobForm * changelogs * address PR feedback * remove task queues from job abd queue from scheduled job * remove some of the task queues references * added cache for get_celery_queues * remove some of the task queues references * fix unittests * Revert "fix unittests" This reverts commit 3e6086e. * fix unittests * remove output.txt * fix unittests * fix unittests * address some PR feedback * added task_queues/queue property to JobSerializer and ScheduledJobSerializer * fix unittests * fix unittests * fix unittests * ruff fix * unittests * added documentation and unittests * added new doc to nav config * fix unittests * refactor JobQueueAssignmentFactory * fix unittests * unittest fix * ruff fix * Update nautobot/extras/templates/extras/jobqueue_retrieve.html Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * address some PR feedback * remove jobqueueassignment.md * create stub for _job_queue field in JobForm * added clear_job_queues_override to JobBulkEditForm * JobQueueFactory changes * migration fix * Address PR feedback * address PR feedback from standup * ruff * refactor JobVariablesTest * Update nautobot/extras/migrations/0117_task_queue_to_job_queue_migration.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * unittest fix * Review feedback * added job_queue related fields on JobInputSerializer and JobMultiPartInputSerializer * raise validation error * fix unittests * ruff * refactored JobQueueFactory a bit * unittests * Add `job_queues_override` functionality. * generate more JobQueues to make sure that enough JobQueues have tenants that have tenant groups * factory changes * ruff fix * UI fixes * Fix UI a bit more * add value type check for task_queues_override setter * ruff fix * pylint fix --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * VDC: model & API (#6169) * create model and api * add missing fields and constrains * Add api test case * add model test case * resolve PR feedback * resolve PR feedback * fix unittest * fix failling test * fix test * Fix unittest * remod comments * PR feedback * Update nautobot/dcim/models/devices.py --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Disable coverage during test database setup (#6215) * towncrier/version bump * Update nautobot/docs/release-notes/version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update Lock-file Patch Releases for Develop (develop) (#6212) * Update Lock-file Patch Releases for Develop * changelog and pyproject.toml * 6212.dependencies -> 6212.security * Update changes/6212.security Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * restored poetry.lock * poetry lock file --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * reran towncrier * Fix upstream testing workflow to work with new Dockerfile (#6222) * Constance cache timeout fix and docs updates (#6221) * Add NAUTOBOT_CACHES_TIMEOUT environment variable and use it for Constance as well * pyproject.toml * Updating datetime.timedelta (#6230) Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Towncrier and version bump * Changed `--cache-test-fixtures` and `--keepdb` flags from opt-in to opt-out for `inv unittest` and `inv integration-test` commands. (#6213) * first commit * delete debugging statements * modified github workflow files ci_pullrequest.yml and ci_integration.yml to explictly opt out of cache-test-fixture and keepdb * fix typo * Update changes/5859.housekeeping Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * updated documentations * Update nautobot/docs/development/core/getting-started.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * address PR feedback * fix flaky unittests --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fixed ClusterTable for device count column link uses outdated filter pattern. (#6229) * Fixed ClusterTable for device count column link uses outdated filter pattern. * Fixed PowerPanelTable for power feed count column link uses outdated filter pattern. * add cluster NaturalKeyOrPKMultipleChoiceFilter to VMFilterSet * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * changelog --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix upstream testing typo from #6222 (#6227) * fixed typo in plugin upstream testing base * add comment * changelog * update --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * towncrier * version bump * Fixed SavedView functionality not working in Rack Elevation List View. (#6228) * Fixed SavedView functionality not working in Rack Elevation List View. * pylint * address PR feedback * address PR feedback * fix unittests * Add rendered-markdown in NoteTable (#6233) * add rendered-markdown in NoteTable * add changelog * Update changes/6233.added Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * fix changelog name --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Fixed Device Type link and count from Device Family Detail View. (#6248) * Refactored SavedViewUIViewSet to take into account of `permissions_class` attribute. (#6216) * save progress * ruff fix * modified github workflow files ci_pullrequest.yml and ci_integration.yml to explictly opt out of cache-test-fixture and keepdb * revert changes * moved permission_classes to SavedViewUIViewSet * feedback from standup * changelog * implemented previous fix * feedback from standup * added unit test * ruff fix * address PR feedback * Enhanced job delete functions to prevent users with the appropriate permissions or super users from deleting system jobs from the UI and the API. (#6245) * Enhanced job delete functions to prevent users with the appropriate permissions or super users from deleting system jobs from the UI and the API. * Update nautobot/extras/tests/test_views.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * changelog --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * [2.4] Remove Python 3.8 support (#6252) * Remove Python 3.8 support * Update dependency mkdocs-material to v9.5.35 (develop) (#6247) * Update Lock-file Patch Releases for Develop * changelog and pyproject.toml * 6212.dependencies -> 6212.security * Update changes/6212.security Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * restored poetry.lock * poetry lock file * Update dependency mkdocs-material to v9.5.35 * changelog and pyproject.toml * deleted extra changelogs * Update changes/6247.dependencies Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Interface VirtualDeviceContext Assignment model and REST API (#6223) * Fixed device bay populate/depopulate redirect (#6270) * Add VDC Model UI (#6209) * create model and api * add missing fields and constrains * Add api test case * add model test case * resolve PR feedback * resolve PR feedback * fix unittest * fix failling test * fix test * Fix unittest * remod comments * PR feedback * Add VDC Model UI * add docs * fix unittest * Update nautobot/dcim/forms.py * Add interfaces to VDC form * Add interface vdc filter test case * use status = DynamicModelChoiceField * add model and docs * remove vdc field from interface * PR feedback resolved * update * fix markdown * changelogs * remove validation check * All PR feedback resolved * fix failing test by removing webhooks extras_features Because `webhooks` assets that model has changelogging, and in this case we are inheriting from BaseModel instead of PrimaryModel * changes added * fix faliling test * add filter * fix * fix * PR feedback * add ip device validation * fix ruff * fix failing test --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * UI python framework: code drop to `next` (#6266) * UI Components: Basic layout rendering (#6159) * Move existing UI framework components into nautobot.core.ui module * Add invoke nbshell --quiet option * UI framework continued - weight-defined layout, ObjectsTablePanel (#6219) * Refactor, remove Layout classes * Replace constants with choicesets * Add ObjectsTablePanel class. * Change fragment * Review feedback * UI components: refactor, add panels for custom fields, computed fields, relationships (#6246) * Add to nautobot.apps.ui namespace, enhance docstrings accordingly * Self-review feedback * #6141 - add tags panel to ObjectDetailContent (#6274) * Additional change fragments * VLANGroup range field. (#6176) * Fixed `position` to properly disable RUs that are currently occupied (#6264) --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix Prefix not displaying the correct utilization for IP Addresses (#6278) * VLANGroup add tags (#6256) --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Changed Django-structlog to use "celery" instead of "all" (#6288) * Changed Django-structlog to use "celery" instead of "all" * Update changes/6287.dependencies Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Add --no-reusedb option to unittest (#6285) * Add --no-reusedb option to unittest * Change fragment * Backport some test resilience fixes from #6256 (#6292) * Backport some test resilience fixes from #6256 * Change fragment * release 2.3.5 * address pr feedback * Implement Service Add button. (#6290) * Implement Service Add button. * Lookup IP Addresses dynamically * Update changes/6289.fixed Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * rerun towncrier * version bump * Added optional `role` field to `VirtualDeviceContext`. (#6268) * added optional role field to VDC model * changelog * fix unittest * mysql fix perhaps? * mysql fix perhaps? * mysql fix perhaps? * mysql fix perhaps? * mysql fix perhaps? * migration file * ruff * sort-buffer-size * address PR feedback * change to ci_pullrequest.yml * restore * brute force * mysql latest * try to run the whole test suite * pullrequest.yml * restore pullrequest.yml * commented out m2m_changed on _handle_changed_object * revert unnecessary changes * mysql fix * run whole test suite * mysql fix * restore ci_pullrequest.yml * fix unittest * ruff fix * fix unit tests * run unittest without parallel to detect mysql test failure * run unittest without parallel to detect mysql test failure * fix setuptest * revert ci_pullrequest.yml * add todo comment * Fix startup error when serializer base class is not as expected (#6305) * [NCLOUD-2472] Add local K8s cluster (#6284) * feat: Doc K8s dev env * deps: Change kubernetes dependency from `31.0.0` to `^31.0.0` * fix: Do not touch users home kube config * change: Better doc organization * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * increase the minimum number of content-types for MetadataTypes created by factories (#6308) * increase the minimum number of content-types for MetadataTypes created by factories * changelog * changelog * changelog * [DEVELOP] VLANGroup Ranges (#6309) * VLANGroup range field pr#1 * VLANGroup range field pr#2 * fix unittests * ruff fix * Update nautobot/docs/release-notes/version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Release 2.3.6 * version bump * version bump * ruff fix * remove duplicate migration file * deleted duplicate changelog and deleted duplicate lines on test * Fix UI overflow issue Tenant Stats (#6313) Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Added `default_job_queue` field to the Job Model (#6277) * added default job queue field to the Job Model * missing job.save() * miscellaneous * ruff fix * unit test * unittest * unittest and JobBulkEditForm * address PR feedback * migration file fix * pylint * address PR feedback * address unittest failure * migration test * ruff fix * fix unit tests * run unittest without parallel to detect test failure * fix setuptest() * related_name changes * migration file * fix all unittests * ruff * address PR feedback * fix unittests * address PR feedback * address pr feedback * pylint * Update dependency mkdocs-material to v9.5.39 (develop) (#6283) * Update dependency mkdocs-material to v9.5.39 * changelog * updated requirement.txt's * rename changelog: dependencies -> housekeeping --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * A number of various fixes (#6318) * Fix test error with cached job queues (#6320) * Event notification system (#6312) * Improve error handling in Celery inspect (#6322) * Fix #6299 - improve error handling in Celery inspect * Test fix backport from #6154 * Update Lock-file Patch Releases for Next (next) (major) (#5963) * Update Lock-file Patch Releases for Next * Update Lock-file Patch Releases for Next * updated poetry.lock and reverted updates for Django and graphene-django * Update pyproject.toml Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * updated changelog --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Enhance ObjectsTablePanel (#6306) --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Address VDC UI feedback (#6332) * Address VDC UI feedback * role field is not required * template changes * Fix #6337 - add exception handling removed from django-constance upstream (#6339) * Enhancements to nautobot-server runjob (#6334) * Add soft time limit enforcement to 'runjob --local' * Reload jobs in runjob management command, fix warning log message * Enhance ObjectFieldPanel (#6328) * First pass * comments * revert changes to contact table * Minor Updates: Include `add_button_route` Include Badge Add hyperlink fields * fix pylint test * add unittest * PR feedback * fix unittest * resolve PR feedback * PR feedback * minor update * Enhance ObjectFieldPanel * Enhanced ObjectFieldsPanel: Include TreeModel Hierarchy display, copy button ar row level and url fields automatically hyperlinked features. * add unittest * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * resolve PR feedback * pr feedback * slugify key * alphabetize router register --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Added Event Broker Config * Add repo name to hash log of ensure_git_repository (#6351) * Improve constance error handling further (#6349) * Fix DynamicGroup.group_type automatic setting (#6333) --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Add more test * Fix unittest * Remove more react UI remnants (#6342) --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Improve view test failure output (#6366) * Extract nav menu JS to a separate file * Add and adopt assertBodyContains test helper function * Have assertHttpStatus also use extract_page_body --------- Co-authored-by: Timizuo <94907097+timizuoebideri1@users.noreply.github.com> * Release v2.3.7 * PR feedback * Added `StatsPanel` UI component Python class. (#6345) * Added StatsPanel UI component Python class * modified changelog * address PR feedback * Initial refactor of LocationDetailView * refactored Tenant Detail View * cleanup * cleanup after #6328 * pylint * pylint and bug fix from 6328 * revert Location Detail View changes * changelog and ruff * ruff * address PR feedback * revert more LocationDetailView changes and address PR feedback * ruff * restore tzoffset * address PR feedback * fix tests * fix wrong import path * fix griffe warnings * Update version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Move django-constance back to v3 (#6371) * Partial #6297 - add pagination to IPAM related object tables (#6346) Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Fix PR test failures * ruff fix * resolve PR feedback * fix yamllint * version bump * merge upstream * update poetry.lock * renumber several migration files * renumber jobqueue migration files instead * migration file * Fix issue with Installed Apps trying to load invalid action links (#6382) * Try reverse * Add change fragment. * Revise code based on feedback. * Remove assignment of reverse * [#5050] Changed logic to permit VLANs assigned to a device's location's parent locations (including parents of parents, etc.) to be assigned to that device's interfaces. (#6379) * Fix #5050: assign vlans from device's location's parents * add support for assigning vlan to interface if vlan location is parent of switch location * add changelog entry * added unittests * added unittests * fix unit tests * restore unittest * fix unittests * remove extranenous file * address PR feedback --------- Co-authored-by: Alex Tremblay <alex.claude.tremblay@gmail.com> Co-authored-by: Alex Tremblay <alex.tremblay@utoronto.ca> * Refactored `ObjectsTablePanel` to accept either a table class and a queryset or an already initialized table. (#6365) * Fix #6385 - restore Prefix.get_child_ips() API (#6388) * Towncrier and version bump * 6139 Add Text Panel classses (#6357) * 6139 Add Text Panel classses * 6139 Remove custom template panel - for now * 6139 Add get_obj_from_context method * 6139 Add support for json/yaml and placeholder * 6139 Add changes list * 6139 Fix typo * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * 6139 Different approach for rendering placeholder * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * 6139 Apply CR comments * 6139 Apply CR comments --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Dynamic Group membership update performance improvements (#6364) * Micro-optimization: narrow scope of TreeModel invalidate_max_depth_cache signal * Exclude dynamic_group_count column from dynamic group members table * Improve dynamic group member setter performance * Update release date * Add environment variable support for setting CSRF_TRUSTED_ORIGINS (#6374) --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update Lock-file Patch Releases for Develop (develop) (#6362) * Update Lock-file Patch Releases for Develop * Change fragment, pyproject updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix IPAM migration 0050 name and contents to match develop (#6395) * Fix IPAM migration 0050 name and contents to match develop * Change fragment * Handle M2M and reverse M2M correctly in ObjectFieldsPanel, etc. (#6393) * Fix #6377 - handle M2M and reverse M2M correctly in ObjectFieldsPanel, etc. * Add docs for vdc (#6392) * 144 Add documentation for VDC * updated VDC docs * Update nautobot/docs/user-guide/core-data-model/dcim/virtualdevicecontext.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * pr feedback * markdownlint --------- Co-authored-by: John Anderson <lampwins@gmail.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix job queue behavior (#6397) * Fixed false unable to run or schedule job: Celery worker process not running error --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fixed wrong primary ipv6 label on VirtualDeviceContextForm (#6403) * fix wrong primary ipv6 label on VirtualDeviceContextForm * changelo * Revert "changelo" This reverts commit f642c1d. * changelog * Update Lock-file Patch Releases for Next (next) (major) (#6363) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix issue with choices on JSONArrayFormField Also apply sort to channel_width and allowed_channel_list during factories. * Update factory.py Ruff * Fix migrations * Update test_api.py Make RackTest data more deterministic. Relying on the factory to create a device with a u_height and having a location was causing errors some of the times. * Ruff --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Martin Schyth <119582161+jnmms@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: matt852 <matt.vitale@networktocode.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patryk Szulczewski <patryk@szulczewski.eu> Co-authored-by: Brandon Donohoe <bldonohoe@gmail.com> Co-authored-by: Brandon Donohoe <brandon.donohoe@networktocode.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Timizuo <94907097+timizuoebideri1@users.noreply.github.com> Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com> Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Co-authored-by: Matt Miller <mattmiller87@gmail.com> Co-authored-by: Bintang Fadhli <48087452+bintangf@users.noreply.github.com> Co-authored-by: Ken Celenza <ken@celenza.org> Co-authored-by: mzb <marek.zbroch@networktocode.com> Co-authored-by: Jan Snasel <jan.snasel@networktocode.com> Co-authored-by: Nikos Kallergis <nikolaos.kallergis@gmail.com> Co-authored-by: Alex Tremblay <alex.claude.tremblay@gmail.com> Co-authored-by: Alex Tremblay <alex.tremblay@utoronto.ca> Co-authored-by: mateusz-lachowski-codilime <mateusz.lachowski@codilime.com> Co-authored-by: Axel François <axel.francois-charlot@cpe.fr> Co-authored-by: John Anderson <lampwins@gmail.com>
smk4664
added a commit
that referenced
this pull request
Nov 8, 2024
* Wireless models (#6196) * Initial work to implement Wireless Models. * Add Wireless models * Fix test name and model * Add Choices and make migrations * Ruff * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Apply feedback suggestions. Also add the ChoiceArrayField. * Resolve issues * Add Tenants and Factory * Address Feedback * Correct related name. * Change access_point to device to match model * Update nautobot/wireless/models.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Address feedback and more reliably create the M2M factory data. --------- Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Add Wireless models API (#6241) * CSV Export support of JSONArray Choice FIeld * Add additional test data to reduce random test failures. * Fix Model Tests * Add Wireless API * Add Change Fragment * Allow Mode for Wireless and Interfaces * Address some review comments. * Update factory.py Correct the filter. * Update changes/6241.added Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update mkdocs.yml Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update mkdocs.yml Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Address remaining feedback items. * Fix test failure with VLAN being protected. * Address feedback from peer review. --------- Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Wireless UI (#6338) * Initial UI commit * Add the JSONArrayChoiceFormField Also add templates and continue to flush out the UI. * Fix JSONArrayChoiceFormField This change allows the widget to select the proper choice on load, so that existing choices are selected. * Update factory.py channel_width and allowed_channel_list should contain unique values. * Update forms.py Remove unused imports. * Add inline formset for assignments. * Add missing fields for the forms This adds the M2M fields into the create/edit form * Fix verbose name for SSID * Finish Wireless Views This adds the formsets to the create/edit views as well as adding the tables to the table view. * Fix issue with formsets not being able to use query_params * Add Wireless tab to Device Detail View * More UI Changes and Tests * Fix Access Point Group on Device Edit * Fix issue with tests The field when errors are present in form uses `data=[]`, which is not a string and will error out on JSONFields `json.loads(data)`. This ensures that we always have a json valid string object. * Fix test cases Also adds bulk_edit for channel_width * Fix ordering in NumericArrayField * Address feedback from Sprint Review * Ruff and change fragments. * Update nautobot/wireless/templates/wireless/wirelessnetwork_retrieve.html Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update nautobot/wireless/templates/wireless/supporteddatarate_retrieve.html Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update nautobot/wireless/templates/wireless/wirelessnetwork_retrieve.html Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Address some of the Peer Review feedback * Fix issue with field errors not rendering red. * Add Form Validation for the Formset. * Uncommit accidentally committed code * Address BulkEdit Form issues. * Address Additional feedback * Update tables.py Ruff * Fix filter test * Remove unused Code * SupportedDataRate Tests should not conflict with factory. * Fix bug in Formset lookup We only care about the closest TR that has a class applied (which all dynamic formsets would). If the class attribute doesn't exist, it isn't a dynamic formset. * Fix channel_width on RadioProfileTestCases * Fix Controller Active tabs for wireless * Address feedback on Paginator * Apply suggestions from code review Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Fix factory generation of devices for Wireless Access Points * Add additional filters requested * Ruff * Move JobQueueFactory to before Tenant Factory This is to try to get around the Tenant filter tests, This should have been before the TenantFactory. * Ensure 2 JobQueue's have tenants --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Add Wireless Model documentation (#6381) * Add Wireless Model documentation * Fix doc links * Change Fragment and link correction. * Update changes/6381.documentation Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Update nautobot/docs/user-guide/core-data-model/wireless/accesspointgroup.md Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Remove the assignment docs These don't add any value. * Remove references to the assignment docs. * Override documentation path * Add link to External Integration --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Fix issue with choices on JSONArrayFormField (#6412) * Fixed appropriate cable status coloring not applied for DeviceModule*Table rows in dark mode. (#6128) * Fixed appropriate cable status coloring not applied for DeviceModule*Table rows in dark mode. * ruff fix * address PR feedback * address PR feedback * ruff fix * Fix regression #6131 (#6132) * Added missing DynamicGroup content to Device Detail View and Software Image File Detail View (#6148) * Added missing DynamicGroup content to Device Detail View. * Added missing DynamicGroup content to Software Image Detail View. * modified changelog * modified changelog * Fix some points of non-determinism in factory data (#6147) --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Added Status Field to VRF model (#6130) * Add status field to VRF (#6120) * Add status field to VRF (#6120) * make status field nullable and blankable * changelog * address PR feedback --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> * Handle time zones more correctly with ScheduledJob (#6122) * Fix #5591 - handle time zones more correctly with ScheduledJob. * Refinements and some test coverage * 1 line of bug fix, 300 lines of testing * Python 3.8 use backports.zoneinfo * Apply suggestions from code review Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Diversify test data a bit --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * release/2.3.2 * Avoid exceptions when encountering a model that doesn't inherit from BaseModel (#6175) * Avoid exceptions when encountering a model that doesn't inherit from BaseModel * Change fragment * Rotate collapse icon (#6160) * Rotate collapse icon on homepage * Add changelog --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * 5180 - Search by Scheduled Job Name in Job Results (#6167) * Filter Job Results by Scheduled Job * Fix ruff * Add Scheduled Job to Job Results table * Remove unnecessary widget * Fix integration tests * Add action buttons to Scheduled Jobs * Remove ScheduledJob factory * Ruff fix * unittest fix --------- Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * merge latest PRs and generated release notes * Bump cryptography from 43.0.0 to 43.0.1 (#6182) * Bump cryptography from 43.0.0 to 43.0.1 Bumps [cryptography](https://github.com/pyca/cryptography) from 43.0.0 to 43.0.1. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@43.0.0...43.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Change fragment * Update changes/6182.security --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * updated release notes after 6182 * version bump * migration conflict * ruff * comment out generic tests for TreeNodeMultipleChoiceFilter * not enough JobQueues with tenant groups * Fix #6184 (#6186) * add display property to Prefix model (#6190) * add display property to Prefix model * ruff format & add changelog * remove unused test code * modify path parameter in test client `.get` call --------- Co-authored-by: Brandon Donohoe <brandon.donohoe@networktocode.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update Lock-file Patch Releases for Develop (develop) (#6084) * Update Lock-file Patch Releases for Develop * Pyproject.toml and change fragment --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Add User to override the UI view for Time Zone (#6156) * add middleware * Add testcase * Update nautobot/core/middleware.py * mod test * fix bug incorrect timezone displayed in schedule form * move Timezone update UI to Preference * PR feedback * Update 3263.added Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Updates example invoke.yml (#6155) * Updates example invoke.yml * Adds fragment * Changes all options to comments * Cleans up comments * Updates changelog wording --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix #6197 (#6202) Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix performance regression in web_request_context (#6206) * Fix performance regression in web_request_context * Alternate approach, a bit more efficient --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Added JobQueue UI/Refactor Job Code to use JobQueue models (#6154) * JobQueue UI * fix some JobQueue related forms and added view unittests * added JobQueue to navigation menu and added jobs filter to JobQueueFilterSet * added JobQueue field to JobForm * changelogs * address PR feedback * remove task queues from job abd queue from scheduled job * remove some of the task queues references * added cache for get_celery_queues * remove some of the task queues references * fix unittests * Revert "fix unittests" This reverts commit 3e6086e. * fix unittests * remove output.txt * fix unittests * fix unittests * address some PR feedback * added task_queues/queue property to JobSerializer and ScheduledJobSerializer * fix unittests * fix unittests * fix unittests * ruff fix * unittests * added documentation and unittests * added new doc to nav config * fix unittests * refactor JobQueueAssignmentFactory * fix unittests * unittest fix * ruff fix * Update nautobot/extras/templates/extras/jobqueue_retrieve.html Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * address some PR feedback * remove jobqueueassignment.md * create stub for _job_queue field in JobForm * added clear_job_queues_override to JobBulkEditForm * JobQueueFactory changes * migration fix * Address PR feedback * address PR feedback from standup * ruff * refactor JobVariablesTest * Update nautobot/extras/migrations/0117_task_queue_to_job_queue_migration.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * unittest fix * Review feedback * added job_queue related fields on JobInputSerializer and JobMultiPartInputSerializer * raise validation error * fix unittests * ruff * refactored JobQueueFactory a bit * unittests * Add `job_queues_override` functionality. * generate more JobQueues to make sure that enough JobQueues have tenants that have tenant groups * factory changes * ruff fix * UI fixes * Fix UI a bit more * add value type check for task_queues_override setter * ruff fix * pylint fix --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * VDC: model & API (#6169) * create model and api * add missing fields and constrains * Add api test case * add model test case * resolve PR feedback * resolve PR feedback * fix unittest * fix failling test * fix test * Fix unittest * remod comments * PR feedback * Update nautobot/dcim/models/devices.py --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Disable coverage during test database setup (#6215) * towncrier/version bump * Update nautobot/docs/release-notes/version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update Lock-file Patch Releases for Develop (develop) (#6212) * Update Lock-file Patch Releases for Develop * changelog and pyproject.toml * 6212.dependencies -> 6212.security * Update changes/6212.security Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * restored poetry.lock * poetry lock file --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * reran towncrier * Fix upstream testing workflow to work with new Dockerfile (#6222) * Constance cache timeout fix and docs updates (#6221) * Add NAUTOBOT_CACHES_TIMEOUT environment variable and use it for Constance as well * pyproject.toml * Updating datetime.timedelta (#6230) Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Towncrier and version bump * Changed `--cache-test-fixtures` and `--keepdb` flags from opt-in to opt-out for `inv unittest` and `inv integration-test` commands. (#6213) * first commit * delete debugging statements * modified github workflow files ci_pullrequest.yml and ci_integration.yml to explictly opt out of cache-test-fixture and keepdb * fix typo * Update changes/5859.housekeeping Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * updated documentations * Update nautobot/docs/development/core/getting-started.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * address PR feedback * fix flaky unittests --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fixed ClusterTable for device count column link uses outdated filter pattern. (#6229) * Fixed ClusterTable for device count column link uses outdated filter pattern. * Fixed PowerPanelTable for power feed count column link uses outdated filter pattern. * add cluster NaturalKeyOrPKMultipleChoiceFilter to VMFilterSet * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * changelog --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix upstream testing typo from #6222 (#6227) * fixed typo in plugin upstream testing base * add comment * changelog * update --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * towncrier * version bump * Fixed SavedView functionality not working in Rack Elevation List View. (#6228) * Fixed SavedView functionality not working in Rack Elevation List View. * pylint * address PR feedback * address PR feedback * fix unittests * Add rendered-markdown in NoteTable (#6233) * add rendered-markdown in NoteTable * add changelog * Update changes/6233.added Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * fix changelog name --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Fixed Device Type link and count from Device Family Detail View. (#6248) * Refactored SavedViewUIViewSet to take into account of `permissions_class` attribute. (#6216) * save progress * ruff fix * modified github workflow files ci_pullrequest.yml and ci_integration.yml to explictly opt out of cache-test-fixture and keepdb * revert changes * moved permission_classes to SavedViewUIViewSet * feedback from standup * changelog * implemented previous fix * feedback from standup * added unit test * ruff fix * address PR feedback * Enhanced job delete functions to prevent users with the appropriate permissions or super users from deleting system jobs from the UI and the API. (#6245) * Enhanced job delete functions to prevent users with the appropriate permissions or super users from deleting system jobs from the UI and the API. * Update nautobot/extras/tests/test_views.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * changelog --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * [2.4] Remove Python 3.8 support (#6252) * Remove Python 3.8 support * Update dependency mkdocs-material to v9.5.35 (develop) (#6247) * Update Lock-file Patch Releases for Develop * changelog and pyproject.toml * 6212.dependencies -> 6212.security * Update changes/6212.security Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * restored poetry.lock * poetry lock file * Update dependency mkdocs-material to v9.5.35 * changelog and pyproject.toml * deleted extra changelogs * Update changes/6247.dependencies Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Interface VirtualDeviceContext Assignment model and REST API (#6223) * Fixed device bay populate/depopulate redirect (#6270) * Add VDC Model UI (#6209) * create model and api * add missing fields and constrains * Add api test case * add model test case * resolve PR feedback * resolve PR feedback * fix unittest * fix failling test * fix test * Fix unittest * remod comments * PR feedback * Add VDC Model UI * add docs * fix unittest * Update nautobot/dcim/forms.py * Add interfaces to VDC form * Add interface vdc filter test case * use status = DynamicModelChoiceField * add model and docs * remove vdc field from interface * PR feedback resolved * update * fix markdown * changelogs * remove validation check * All PR feedback resolved * fix failing test by removing webhooks extras_features Because `webhooks` assets that model has changelogging, and in this case we are inheriting from BaseModel instead of PrimaryModel * changes added * fix faliling test * add filter * fix * fix * PR feedback * add ip device validation * fix ruff * fix failing test --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * UI python framework: code drop to `next` (#6266) * UI Components: Basic layout rendering (#6159) * Move existing UI framework components into nautobot.core.ui module * Add invoke nbshell --quiet option * UI framework continued - weight-defined layout, ObjectsTablePanel (#6219) * Refactor, remove Layout classes * Replace constants with choicesets * Add ObjectsTablePanel class. * Change fragment * Review feedback * UI components: refactor, add panels for custom fields, computed fields, relationships (#6246) * Add to nautobot.apps.ui namespace, enhance docstrings accordingly * Self-review feedback * #6141 - add tags panel to ObjectDetailContent (#6274) * Additional change fragments * VLANGroup range field. (#6176) * Fixed `position` to properly disable RUs that are currently occupied (#6264) --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix Prefix not displaying the correct utilization for IP Addresses (#6278) * VLANGroup add tags (#6256) --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Changed Django-structlog to use "celery" instead of "all" (#6288) * Changed Django-structlog to use "celery" instead of "all" * Update changes/6287.dependencies Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Add --no-reusedb option to unittest (#6285) * Add --no-reusedb option to unittest * Change fragment * Backport some test resilience fixes from #6256 (#6292) * Backport some test resilience fixes from #6256 * Change fragment * release 2.3.5 * address pr feedback * Implement Service Add button. (#6290) * Implement Service Add button. * Lookup IP Addresses dynamically * Update changes/6289.fixed Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * rerun towncrier * version bump * Added optional `role` field to `VirtualDeviceContext`. (#6268) * added optional role field to VDC model * changelog * fix unittest * mysql fix perhaps? * mysql fix perhaps? * mysql fix perhaps? * mysql fix perhaps? * mysql fix perhaps? * migration file * ruff * sort-buffer-size * address PR feedback * change to ci_pullrequest.yml * restore * brute force * mysql latest * try to run the whole test suite * pullrequest.yml * restore pullrequest.yml * commented out m2m_changed on _handle_changed_object * revert unnecessary changes * mysql fix * run whole test suite * mysql fix * restore ci_pullrequest.yml * fix unittest * ruff fix * fix unit tests * run unittest without parallel to detect mysql test failure * run unittest without parallel to detect mysql test failure * fix setuptest * revert ci_pullrequest.yml * add todo comment * Fix startup error when serializer base class is not as expected (#6305) * [NCLOUD-2472] Add local K8s cluster (#6284) * feat: Doc K8s dev env * deps: Change kubernetes dependency from `31.0.0` to `^31.0.0` * fix: Do not touch users home kube config * change: Better doc organization * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * increase the minimum number of content-types for MetadataTypes created by factories (#6308) * increase the minimum number of content-types for MetadataTypes created by factories * changelog * changelog * changelog * [DEVELOP] VLANGroup Ranges (#6309) * VLANGroup range field pr#1 * VLANGroup range field pr#2 * fix unittests * ruff fix * Update nautobot/docs/release-notes/version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Release 2.3.6 * version bump * version bump * ruff fix * remove duplicate migration file * deleted duplicate changelog and deleted duplicate lines on test * Fix UI overflow issue Tenant Stats (#6313) Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Added `default_job_queue` field to the Job Model (#6277) * added default job queue field to the Job Model * missing job.save() * miscellaneous * ruff fix * unit test * unittest * unittest and JobBulkEditForm * address PR feedback * migration file fix * pylint * address PR feedback * address unittest failure * migration test * ruff fix * fix unit tests * run unittest without parallel to detect test failure * fix setuptest() * related_name changes * migration file * fix all unittests * ruff * address PR feedback * fix unittests * address PR feedback * address pr feedback * pylint * Update dependency mkdocs-material to v9.5.39 (develop) (#6283) * Update dependency mkdocs-material to v9.5.39 * changelog * updated requirement.txt's * rename changelog: dependencies -> housekeeping --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * A number of various fixes (#6318) * Fix test error with cached job queues (#6320) * Event notification system (#6312) * Improve error handling in Celery inspect (#6322) * Fix #6299 - improve error handling in Celery inspect * Test fix backport from #6154 * Update Lock-file Patch Releases for Next (next) (major) (#5963) * Update Lock-file Patch Releases for Next * Update Lock-file Patch Releases for Next * updated poetry.lock and reverted updates for Django and graphene-django * Update pyproject.toml Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * updated changelog --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Enhance ObjectsTablePanel (#6306) --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Address VDC UI feedback (#6332) * Address VDC UI feedback * role field is not required * template changes * Fix #6337 - add exception handling removed from django-constance upstream (#6339) * Enhancements to nautobot-server runjob (#6334) * Add soft time limit enforcement to 'runjob --local' * Reload jobs in runjob management command, fix warning log message * Enhance ObjectFieldPanel (#6328) * First pass * comments * revert changes to contact table * Minor Updates: Include `add_button_route` Include Badge Add hyperlink fields * fix pylint test * add unittest * PR feedback * fix unittest * resolve PR feedback * PR feedback * minor update * Enhance ObjectFieldPanel * Enhanced ObjectFieldsPanel: Include TreeModel Hierarchy display, copy button ar row level and url fields automatically hyperlinked features. * add unittest * Apply suggestions from code review Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * resolve PR feedback * pr feedback * slugify key * alphabetize router register --------- Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Added Event Broker Config * Add repo name to hash log of ensure_git_repository (#6351) * Improve constance error handling further (#6349) * Fix DynamicGroup.group_type automatic setting (#6333) --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Add more test * Fix unittest * Remove more react UI remnants (#6342) --------- Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Improve view test failure output (#6366) * Extract nav menu JS to a separate file * Add and adopt assertBodyContains test helper function * Have assertHttpStatus also use extract_page_body --------- Co-authored-by: Timizuo <94907097+timizuoebideri1@users.noreply.github.com> * Release v2.3.7 * PR feedback * Added `StatsPanel` UI component Python class. (#6345) * Added StatsPanel UI component Python class * modified changelog * address PR feedback * Initial refactor of LocationDetailView * refactored Tenant Detail View * cleanup * cleanup after #6328 * pylint * pylint and bug fix from 6328 * revert Location Detail View changes * changelog and ruff * ruff * address PR feedback * revert more LocationDetailView changes and address PR feedback * ruff * restore tzoffset * address PR feedback * fix tests * fix wrong import path * fix griffe warnings * Update version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update version-2.3.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Move django-constance back to v3 (#6371) * Partial #6297 - add pagination to IPAM related object tables (#6346) Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> * Fix PR test failures * ruff fix * resolve PR feedback * fix yamllint * version bump * merge upstream * update poetry.lock * renumber several migration files * renumber jobqueue migration files instead * migration file * Fix issue with Installed Apps trying to load invalid action links (#6382) * Try reverse * Add change fragment. * Revise code based on feedback. * Remove assignment of reverse * [#5050] Changed logic to permit VLANs assigned to a device's location's parent locations (including parents of parents, etc.) to be assigned to that device's interfaces. (#6379) * Fix #5050: assign vlans from device's location's parents * add support for assigning vlan to interface if vlan location is parent of switch location * add changelog entry * added unittests * added unittests * fix unit tests * restore unittest * fix unittests * remove extranenous file * address PR feedback --------- Co-authored-by: Alex Tremblay <alex.claude.tremblay@gmail.com> Co-authored-by: Alex Tremblay <alex.tremblay@utoronto.ca> * Refactored `ObjectsTablePanel` to accept either a table class and a queryset or an already initialized table. (#6365) * Fix #6385 - restore Prefix.get_child_ips() API (#6388) * Towncrier and version bump * 6139 Add Text Panel classses (#6357) * 6139 Add Text Panel classses * 6139 Remove custom template panel - for now * 6139 Add get_obj_from_context method * 6139 Add support for json/yaml and placeholder * 6139 Add changes list * 6139 Fix typo * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * 6139 Different approach for rendering placeholder * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update nautobot/core/ui/object_detail.py Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * 6139 Apply CR comments * 6139 Apply CR comments --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Dynamic Group membership update performance improvements (#6364) * Micro-optimization: narrow scope of TreeModel invalidate_max_depth_cache signal * Exclude dynamic_group_count column from dynamic group members table * Improve dynamic group member setter performance * Update release date * Add environment variable support for setting CSRF_TRUSTED_ORIGINS (#6374) --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Update Lock-file Patch Releases for Develop (develop) (#6362) * Update Lock-file Patch Releases for Develop * Change fragment, pyproject updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix IPAM migration 0050 name and contents to match develop (#6395) * Fix IPAM migration 0050 name and contents to match develop * Change fragment * Handle M2M and reverse M2M correctly in ObjectFieldsPanel, etc. (#6393) * Fix #6377 - handle M2M and reverse M2M correctly in ObjectFieldsPanel, etc. * Add docs for vdc (#6392) * 144 Add documentation for VDC * updated VDC docs * Update nautobot/docs/user-guide/core-data-model/dcim/virtualdevicecontext.md Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * pr feedback * markdownlint --------- Co-authored-by: John Anderson <lampwins@gmail.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix job queue behavior (#6397) * Fixed false unable to run or schedule job: Celery worker process not running error --------- Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fixed wrong primary ipv6 label on VirtualDeviceContextForm (#6403) * fix wrong primary ipv6 label on VirtualDeviceContextForm * changelo * Revert "changelo" This reverts commit f642c1d. * changelog * Update Lock-file Patch Releases for Next (next) (major) (#6363) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> * Fix issue with choices on JSONArrayFormField Also apply sort to channel_width and allowed_channel_list during factories. * Update factory.py Ruff * Fix migrations * Update test_api.py Make RackTest data more deterministic. Relying on the factory to create a device with a u_height and having a location was causing errors some of the times. * Ruff --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Martin Schyth <119582161+jnmms@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: matt852 <matt.vitale@networktocode.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patryk Szulczewski <patryk@szulczewski.eu> Co-authored-by: Brandon Donohoe <bldonohoe@gmail.com> Co-authored-by: Brandon Donohoe <brandon.donohoe@networktocode.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Timizuo <94907097+timizuoebideri1@users.noreply.github.com> Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com> Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Co-authored-by: Matt Miller <mattmiller87@gmail.com> Co-authored-by: Bintang Fadhli <48087452+bintangf@users.noreply.github.com> Co-authored-by: Ken Celenza <ken@celenza.org> Co-authored-by: mzb <marek.zbroch@networktocode.com> Co-authored-by: Jan Snasel <jan.snasel@networktocode.com> Co-authored-by: Nikos Kallergis <nikolaos.kallergis@gmail.com> Co-authored-by: Alex Tremblay <alex.claude.tremblay@gmail.com> Co-authored-by: Alex Tremblay <alex.tremblay@utoronto.ca> Co-authored-by: mateusz-lachowski-codilime <mateusz.lachowski@codilime.com> Co-authored-by: Axel François <axel.francois-charlot@cpe.fr> Co-authored-by: John Anderson <lampwins@gmail.com> * Add Controller Capabilities field (#6446) * Add capabilities fields to Controller and ControllerManagedDeviceGroup * Accept URL params for JSONArrayField JSONArrayFIeld was dropping the value when passed into the url parameters instead of converting to a list. Also switch rendering of allowed_channel_list to use the array_to_string. * Allow query_params on NavMenuItems. Fix Wireless Navigation. * Ruff and Changelog * Fix tests. * Apply feedback and fix InterfaceTest * Ruff * Remove JobQueueFactoryWithTenancy * Apply suggestions from code review Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Apply changes from code suggestions. * Update nautobot/dcim/models/devices.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/dcim/models/devices.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/dcim/tables/devices.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Update nautobot/dcim/tables/devices.py Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * Revert docstring change. * Add note on the Capabilities field use case. * Apply code feedback --------- Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> * U/smk4664 remove access point groups (#6467) * Replace AccessPointGroup with ControllerManagedDeviceGroup * Remove items from homepage The Radio Profiles and Supported Data Rates do not need to be on the homepage. * Hide Controller on Controller UI. This field should already be known, unnecessary to show on this view. * Remove references to Access Point Groups. * Fix migrations and optional rendering based on capabilities. * Ensure capabilities is set when linking to ControllerManagedDeviceGroup * Ruff * Render label or mdash for capabilities * Ruff * Avoid test conflicts I found that sometimes the Identifier would be set to 100, which could conflict with the VirtualDeviceContextsTestCase in test_api if the same device was randomly chosen. * Update factory.py Ruff * Add "assigned_object_id" to metadata ordering. * Remove factory data from ObjectMetadataTest * Revert Metadata Ordering change. * Resolve some issues found in Peer Review. * Remove lingering TODO comments. * Apply suggested Changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com> Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com> Co-authored-by: Martin Schyth <119582161+jnmms@users.noreply.github.com> Co-authored-by: HanlinMiao <hanlin980505@gmail.com> Co-authored-by: matt852 <matt.vitale@networktocode.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patryk Szulczewski <patryk@szulczewski.eu> Co-authored-by: Brandon Donohoe <bldonohoe@gmail.com> Co-authored-by: Brandon Donohoe <brandon.donohoe@networktocode.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Timizuo <94907097+timizuoebideri1@users.noreply.github.com> Co-authored-by: Timizuo <ebideritimizuo@gmail.com> Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com> Co-authored-by: Matt Miller <mattmiller87@gmail.com> Co-authored-by: Bintang Fadhli <48087452+bintangf@users.noreply.github.com> Co-authored-by: Ken Celenza <ken@celenza.org> Co-authored-by: mzb <marek.zbroch@networktocode.com> Co-authored-by: Jan Snasel <jan.snasel@networktocode.com> Co-authored-by: Nikos Kallergis <nikolaos.kallergis@gmail.com> Co-authored-by: Alex Tremblay <alex.claude.tremblay@gmail.com> Co-authored-by: Alex Tremblay <alex.tremblay@utoronto.ca> Co-authored-by: mateusz-lachowski-codilime <mateusz.lachowski@codilime.com> Co-authored-by: Axel François <axel.francois-charlot@cpe.fr> Co-authored-by: John Anderson <lampwins@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We had a mismatch in filename for the IPAM 0050 migration due to the initial commit of this migration to
next
and subsequent backport todevelop
for a 2.3.x priority release. This correctsnext
to match the released migration.