Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add examples for object-selection fields

未关闭
#39 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@pheus 已经在做这个了。

开始于 2026年10月29日。

  • #86 来自 @pheus —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
documentation

调研方向

Start in docs/user-guide/authoring.md and review the existing reference for ObjectVar and MultiObjectVar options. Add working examples covering context labels, dependent query_params, the advanced selector, quick-add, optional selections, permissions, displayed labels versus submitted IDs, and the existing URL-prefilling mechanism; done means the examples use supported API response fields and keep Copy link and unreleased attribute references separate.

由索引模型根据 Issue 内容生成。

描述

app: scripts status: accepted type: documentation
Change Type

Addition

Proposed Changes

Expand docs/user-guide/authoring.md with working ObjectVar and MultiObjectVar examples. Cover context labels, dependent query_params, the advanced selector, and quick-add.

Use fields available in supported API responses. Explain displayed labels versus submitted IDs, optional selections, and the permissions needed to view or create related objects.

Include a short URL-prefilling example using the existing mechanism. Keep it distinct from the proposed Copy link action, and do not present attribute references such as $prefix.prefix as available before that feature ships.

The reference lists these options, but examples would make them easier to combine without adding another configuration API.

Related request: netbox-community/netbox#15595.

主要语言
Python
星标
8
派生
0
平均合并
11 小时 35 分钟
30 天内合并 PR
20

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

netbox-community/netbox-scripts 的其他 Issue

查看 netbox-community/netbox-scripts 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。