Update Event Rules snapshot guidance for NetBox v4.7.6

Open Beginner friendly
#200 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown
Domain
documentation

Research direction

Open docs/administration/event-rules.md and read the "Practical examples" and "Adapting the examples" sections, noting every claim about a missing prechange snapshot. Then read netbox-community/netbox#23617 to confirm the new automatic pre-change behaviour and which version it lands in. Edit both sections so they describe v4.7.6+ while still covering v4.7.5, keeping the incomplete-snapshot checks and the advice to call snapshot() explicitly; done when the guide no longer states the old blanket rule.

Written by the indexing model from the issue text.

Description

app: scripts Bucket: Improve status: backlog type: documentation
Change Type

Correction

Proposed Changes

The Event Rules guide currently explains that object updates may lack a prechange snapshot when snapshot() is not called before saving.

With netbox-community/netbox#23617, scheduled for NetBox v4.7.6, NetBox automatically retrieves the pre-change state from the database when an existing change-logged object is saved without a snapshot and a request is in scope.

Update the "Practical examples" and "Adapting the examples" sections in docs/administration/event-rules.md to reflect this behavior while accounting for NetBox v4.7.5, which remains supported.

Retain the checks for incomplete snapshots and the recommendation to call snapshot() explicitly before modifying objects.

Dominant language
Python
Stars
8
Forks
0
Avg merge
13h 4m
Merged PRs (30d)
77

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from netbox-community/netbox-scripts

All issues in netbox-community/netbox-scripts

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.