Jira (PUP-10440) Remove networking code from the parent REST terminus

41 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Apr 23, 2020, 5:30:04 PM4/23/20
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Bug PUP-10440
Remove networking code from the parent REST terminus
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/04/23 2:29 PM
Fix Versions: PUP 7.0.0
Priority: Normal Normal
Reporter: Josh Cooper

In 6.14.0, all of puppet's rest termini for a specific model, e.g. Puppet::Indirector::Catalog::Rest, use the http client to make REST requests. However, the abstract parent Puppet::Indirector::Rest still uses the legacy http code.

This ticket is to have the parent's find, search, etc methods raise a NotImplementedError, and delete the supporting methods like headers, network, server, port, srv_service, etc

Also delete Puppet::Util::Connection

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

Melissa Stone (Jira)

unread,
Apr 30, 2020, 5:21:03 PM4/30/20
to puppe...@googlegroups.com
Melissa Stone commented on Bug PUP-10440
 
Re: Remove networking code from the parent REST terminus

Almost everything in lib/puppet/indirector/rest.rb.

We aren't storing state, compression module goes agay, server and port settings, do_request, private methods, handle_response, etc

NotImplementedError for get, post, head, etc

maybe keep:
`use_http_client?`
`validate_key` def needs to stay

Josh Cooper (Jira)

unread,
Jul 23, 2020, 10:38:03 PM7/23/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
In 6.14.0, all of puppet's rest termini for a specific model, e.g. {{Puppet::Indirector::Catalog::Rest}}, use the http client to make REST requests. However, the abstract parent {{Puppet::Indirector::Rest}} still uses the legacy http code.

This ticket is to have the parent's find, search, etc methods raise a NotImplementedError, and delete the supporting methods like headers, network, server, port, srv_service, etc

Also delete Puppet::Util::Connection

Josh Cooper (Jira)

unread,
Jul 24, 2020, 7:14:03 PM7/24/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jul 29, 2020, 10:57:03 AM7/29/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Platform Core KANBAN

Josh Cooper (Jira)

unread,
Jul 29, 2020, 5:24:03 PM7/29/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Aug 6, 2020, 1:13:03 PM8/6/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Aug 6, 2020, 5:29:03 PM8/6/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Aug 6, 2020, 6:46:04 PM8/6/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Bug Fix
Release Notes Summary: This is a breaking change for any REST terminus that relies on the parent REST terminus to perform the network request and process the response. REST termini must implement the find, search, save and destroy methods that make sense for their indirected model.

Claire Cadman (Jira)

unread,
Nov 10, 2020, 4:54:02 AM11/10/20
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: doc_reviewed platform_7
Reply all
Reply to author
Forward
0 new messages