Jira (PDB-4683) Docs: Replace .each with .map in API query example

13 views
Skip to first unread message

Mindy Moreland (Jira)

unread,
Apr 6, 2020, 1:11:04 PM4/6/20
to puppe...@googlegroups.com
Mindy Moreland created an issue
 
PuppetDB / Bug PDB-4683
Docs: Replace .each with .map in API query example
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/04/06 10:10 AM
Priority: Normal Normal
Reporter: Mindy Moreland

Two pieces of feedback from the docs site: 

Url:
https://puppet.com/docs/puppetdb/6.0/api/query/tutorial.html#querying-with-puppet-code

Comment:
In the "Querying with Puppet code" section, the example use ".each" but each returns the original array: to return a new array composed of the processed items, one should use the map() function.

.each should be replaced by .map in this example. Thanks

 

Url:
https://puppet.com/docs/puppetdb/6.0/api/query/tutorial.html#querying-with-puppet-code

Comment:
https://puppet.com/docs/puppetdb/6.0/api/query/tutorial.html#querying-with-puppet-code

the example is great, and wrong. `each` needs to be `map`. At least in my case it that's what solved it.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Blatt (Jira)

unread,
Jun 2, 2020, 2:28:04 PM6/2/20
to puppe...@googlegroups.com

David McTavish (Jira)

unread,
Jan 27, 2022, 10:51:01 AM1/27/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: HA 2022-02-16
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

David McTavish (Jira)

unread,
Feb 2, 2022, 3:40:02 PM2/2/22
to puppe...@googlegroups.com

David McTavish (Jira)

unread,
Feb 16, 2022, 2:42:03 PM2/16/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: HAHA On Deck, HA 2022-02-16

David McTavish (Jira)

unread,
Mar 1, 2022, 1:52:03 PM3/1/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: I&M&H On Deck, HA 2022-02-16

David McTavish (Jira)

unread,
Mar 3, 2022, 8:28:03 AM3/3/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Labels: low-hanging-fruit
Reply all
Reply to author
Forward
0 new messages