Description
Describe the Bug
puppetserver 7.16 logs a deprecation warning with a broken URL:
2024-03-11T17:43:29.958-05:00 WARN [qtp1601237113-43] [puppetserver] Puppet The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.29/deprecated_language.html (file & line not available)
This convention of using Puppet's minor version (see https://github.com/puppetlabs/puppet/blob/main/lib/hiera/puppet_function.rb#L67) in a url doesn't seem to redirect properly (or maybe the language deprecation page has moved? I couldn't get any variant of the url to work or find the page I assumed it was linking to)
Expected Behavior
Deprecations with valid links
Steps to Reproduce
See linked ticket below
Environment
See linked ticket below
Additional Context
This was originally opened as a Puppet Server ticket here:
puppetlabs/puppetserver#2835
I'm happy to open a PR but I can't figured out what the links should be.
I searched the Puppet 7.x codebase and found a couple other similarly constructed urls which are also broken:
➜ rg 'puppet\.com.*deprec' ruby/puppet/lib/
ruby/puppet/lib/hiera/puppet_function.rb
65: message += ' '+ _("See https://puppet.com/docs/puppet/%{minor_version}/deprecated_language.html") %
ruby/puppet/lib/puppet/network/http/request.rb
68: # YAML in network requests is not supported. See http://links.puppet.com/deprecate_yaml_on_network
ruby/puppet/lib/puppet/pops/issues.rb
599: _("Use of 'import' has been discontinued in favor of a manifest directory. See http://links.puppet.com/puppet-import-deprecation")
631: _("Node inheritance is not supported in Puppet >= 4.0.0. See http://links.puppet.com/puppet-node-inheritance-deprecation")
ruby/puppet/lib/puppet/type/file/ensure.rb
50: [deprecated](https://docs.puppet.com/puppet/4.3/deprecated_language.html)
ruby/puppet/lib/puppet/parser/functions/hiera_array.rb
69:See https://puppet.com/docs/puppet/#{Puppet.minor_version}/deprecated_language.html.
ruby/puppet/lib/puppet/parser/functions/hiera_hash.rb
79:See https://puppet.com/docs/puppet/#{Puppet.minor_version}/deprecated_language.html.
ruby/puppet/lib/puppet/parser/functions/hiera.rb
81:See https://puppet.com/docs/puppet/#{Puppet.minor_version}/deprecated_language.html.
ruby/puppet/lib/puppet/parser/ast/node.rb
7: raise Puppet::DevError, _("Node inheritance is removed in Puppet 4.0.0. See http://links.puppet.com/puppet-node-inheritance-deprecation")