Skip to content

Commit 98777ea

Browse files
authored
🔧 Remove hidden field from extra_options (#1124)
This field is never used, and is likely unintentional duplicate of `hide` (denoting a need that is hidden in the rendered documentation)
1 parent e142d24 commit 98777ea

File tree

24 files changed

+5
-172
lines changed

24 files changed

+5
-172
lines changed

‎docs/configuration.rst‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,6 @@ And use it like:
155155
:tags: important;complex;
156156
:impacts: really everything
157157
158-
Default value:
159-
160-
.. code-block:: python
161-
162-
{'hidden': directives.unchanged}
163-
164-
The ``hidden`` option is a globally available option always hidden and used to easily execute :ref:`dynamic_functions`.
165-
166-
Extra options automatically appear in needs, if a value is set.
167-
By using :ref:`needs_hide_options` the output of such options can be hidden.
168-
169158
.. note:: To filter on these options in `needlist`, `needtable`, etc. you
170159
must use the :ref:`filter` option.
171160

‎docs/examples/needs.json‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"github": "",
3434
"has_dead_links": "",
3535
"has_forbidden_dead_links": "",
36-
"hidden": "",
3736
"hours": "",
3837
"id": "test_req",
3938
"id_complete": "test_req",
@@ -113,7 +112,6 @@
113112
"github": "",
114113
"has_dead_links": "",
115114
"has_forbidden_dead_links": "",
116-
"hidden": "",
117115
"hours": "",
118116
"id": "xyz_123",
119117
"id_complete": "xyz_123",

‎sphinx_needs/data.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ class NeedsInfoType(TypedDict):
177177

178178
# default extra options
179179
# TODO these all default to "" which I don't think is good
180-
hidden: str
181180
duration: str
182181
completion: str
183182
# constraints: str # this is already set in create_need

‎sphinx_needs/needs.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ def prepare_env(app: Sphinx, env: BuildEnvironment, _docname: str) -> None:
514514

515515
# Own extra options
516516
for option in [
517-
"hidden",
518517
"duration",
519518
"completion",
520519
"constraints",

‎tests/__snapshots__/test_basic_doc.ambr‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
'full_title': 'Test story',
3232
'has_dead_links': False,
3333
'has_forbidden_dead_links': False,
34-
'hidden': '',
3534
'id': 'ST_001',
3635
'id_prefix': '',
3736
'is_external': False,
@@ -99,7 +98,6 @@
9998
'full_title': 'No ID',
10099
'has_dead_links': False,
101100
'has_forbidden_dead_links': False,
102-
'hidden': '',
103101
'id': 'US_38823',
104102
'id_prefix': '',
105103
'is_external': False,

‎tests/__snapshots__/test_export_id.ambr‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@
137137
'full_title': 'My requirement',
138138
'has_dead_links': False,
139139
'has_forbidden_dead_links': False,
140-
'hidden': '',
141140
'id': 'REQ_001',
142141
'id_prefix': '',
143142
'is_external': False,
@@ -213,7 +212,6 @@
213212
'full_title': 'My requirement 2',
214213
'has_dead_links': False,
215214
'has_forbidden_dead_links': False,
216-
'hidden': '',
217215
'id': 'REQ_002',
218216
'id_prefix': '',
219217
'is_external': False,
@@ -286,7 +284,6 @@
286284
'full_title': 'My requirement 3',
287285
'has_dead_links': False,
288286
'has_forbidden_dead_links': False,
289-
'hidden': '',
290287
'id': 'REQ_003',
291288
'id_prefix': '',
292289
'is_external': False,
@@ -359,7 +356,6 @@
359356
'full_title': 'My requirement 4',
360357
'has_dead_links': False,
361358
'has_forbidden_dead_links': False,
362-
'hidden': '',
363359
'id': 'REQ_004',
364360
'id_prefix': '',
365361
'is_external': False,
@@ -437,7 +433,6 @@
437433
'full_title': 'Req 5',
438434
'has_dead_links': False,
439435
'has_forbidden_dead_links': False,
440-
'hidden': '',
441436
'id': 'REQ_005',
442437
'id_prefix': '',
443438
'is_external': False,
@@ -541,7 +536,6 @@
541536
'full_title': 'Test of requirements',
542537
'has_dead_links': False,
543538
'has_forbidden_dead_links': False,
544-
'hidden': '',
545539
'id': 'TEST_001',
546540
'id_prefix': '',
547541
'is_external': False,
@@ -616,7 +610,6 @@
616610
'full_title': 'Test of requirements2',
617611
'has_dead_links': False,
618612
'has_forbidden_dead_links': False,
619-
'hidden': '',
620613
'id': 'TEST_002',
621614
'id_prefix': '',
622615
'is_external': False,
@@ -691,7 +684,6 @@
691684
'full_title': 'Test of requirements 5',
692685
'has_dead_links': False,
693686
'has_forbidden_dead_links': False,
694-
'hidden': '',
695687
'id': 'TEST_003',
696688
'id_prefix': '',
697689
'is_external': False,

‎tests/__snapshots__/test_external.ambr‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
'full_title': 'TEST_01 DESCRIPTION',
3232
'has_dead_links': False,
3333
'has_forbidden_dead_links': False,
34-
'hidden': '',
3534
'id': 'EXT_TEST_01',
3635
'id_prefix': '',
3736
'is_external': True,
@@ -99,7 +98,6 @@
9998
'full_title': 'TEST_02 DESCRIPTION',
10099
'has_dead_links': False,
101100
'has_forbidden_dead_links': False,
102-
'hidden': '',
103101
'id': 'EXT_TEST_02',
104102
'id_prefix': '',
105103
'is_external': True,
@@ -170,7 +168,6 @@
170168
'full_title': 'Test requirement 1',
171169
'has_dead_links': False,
172170
'has_forbidden_dead_links': False,
173-
'hidden': '',
174171
'id': 'REQ_1',
175172
'id_prefix': '',
176173
'is_external': False,
@@ -238,7 +235,6 @@
238235
'full_title': 'Test specification 1',
239236
'has_dead_links': False,
240237
'has_forbidden_dead_links': False,
241-
'hidden': '',
242238
'id': 'SPEC_1',
243239
'id_prefix': '',
244240
'is_external': False,
@@ -308,7 +304,6 @@
308304
'full_title': 'Sub-Req',
309305
'has_dead_links': False,
310306
'has_forbidden_dead_links': False,
311-
'hidden': '',
312307
'id': 'SUB_002',
313308
'id_prefix': '',
314309
'is_external': False,

0 commit comments

Comments
 (0)