Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDM fails to show data from foreign environment #512

Open
tuxmea opened this issue Feb 3, 2025 · 0 comments
Open

HDM fails to show data from foreign environment #512

tuxmea opened this issue Feb 3, 2025 · 0 comments

Comments

@tuxmea
Copy link
Member

tuxmea commented Feb 3, 2025

Affected version: v3.0.0
Adding a data change results in:

I, [2025-02-03T23:16:50.217766 #45]  INFO -- : [4483da6a-3d65-4b25-8fa9-314d9f45f809]   Parameters: {"search"=>"", "environment_id"=>"ticket_4267", "node_id"=>"puppet.workshop.betadots.training", "id"=>"postgresql::globals::manage_dnf_module"}
I, [2025-02-03T23:16:50.329394 #45]  INFO -- : [4483da6a-3d65-4b25-8fa9-314d9f45f809]   Rendered layout layouts/application.html.erb (Duration: 17.2ms | Allocations: 13944)
I, [2025-02-03T23:16:50.330784 #45]  INFO -- : [4483da6a-3d65-4b25-8fa9-314d9f45f809] Completed 200 OK in 112ms (Views: 18.7ms | ActiveRecord: 0.1ms | Allocations: 23058)
I, [2025-02-03T23:16:50.447803 #45]  INFO -- : [573915bc-42d2-46b1-9a5c-99458bcb1312] Started GET "/environments/ticket_4267/nodes/puppet.workshop.betadots.training/keys/profile::base::additional_packages?search=" for 10.200.10.1 at 2025-02-03 23:16:50 +0000
I, [2025-02-03T23:16:50.451190 #45]  INFO -- : [573915bc-42d2-46b1-9a5c-99458bcb1312] Processing by KeysController#show as HTML
I, [2025-02-03T23:16:50.451317 #45]  INFO -- : [573915bc-42d2-46b1-9a5c-99458bcb1312]   Parameters: {"search"=>"", "environment_id"=>"ticket_4267", "node_id"=>"puppet.workshop.betadots.training", "id"=>"profile::base::additional_packages"}
I, [2025-02-03T23:16:50.535056 #45]  INFO -- : [573915bc-42d2-46b1-9a5c-99458bcb1312]   Rendered layout layouts/application.html.erb (Duration: 6.7ms | Allocations: 5219)
I, [2025-02-03T23:16:50.535857 #45]  INFO -- : [573915bc-42d2-46b1-9a5c-99458bcb1312] Completed 500 Internal Server Error in 84ms (ActiveRecord: 0.0ms | Allocations: 14365)
F, [2025-02-03T23:16:50.539961 #45] FATAL -- : [573915bc-42d2-46b1-9a5c-99458bcb1312]   
[573915bc-42d2-46b1-9a5c-99458bcb1312] ActionView::Template::Error (undefined local variable or method `node' for an instance of DataFile):
[573915bc-42d2-46b1-9a5c-99458bcb1312]     1: <% if file.has_differing_value_in_original_environment?(node: @node, key: @key) %>
[573915bc-42d2-46b1-9a5c-99458bcb1312]     2:   <%= render "shared/tabbed_diff", dom_id: dom_id(file), original_value:file.value_from_original_environment(key: @key).value, current_value: value.value do %>
[573915bc-42d2-46b1-9a5c-99458bcb1312]     3:     <%= render "form", file: file, value: value %>
[573915bc-42d2-46b1-9a5c-99458bcb1312]     4:   <% end %>
[573915bc-42d2-46b1-9a5c-99458bcb1312]     5: <% else %>
[573915bc-42d2-46b1-9a5c-99458bcb1312]   
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/models/data_file.rb:52:in `id'
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/_value.html.erb:2
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:66
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:31:in `each'
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:31
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:21:in `each'
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:21
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:17:in `each'
[573915bc-42d2-46b1-9a5c-99458bcb1312] app/views/keys/show.html.erb:17
I, [2025-02-03T23:16:55.407898 #45]  INFO -- : [4f9a7377-091f-4d1a-ab87-d3dcb1531119] Started GET "/" for 10.200.10.1 at 2025-02-03 23:16:55 +0000
I, [2025-02-03T23:16:55.411066 #45]  INFO -- : [4f9a7377-091f-4d1a-ab87-d3dcb1531119] Processing by PageController#index as HTML
I, [2025-02-03T23:16:55.422291 #45]  INFO -- : [4f9a7377-091f-4d1a-ab87-d3dcb1531119]   Rendered layout layouts/application.html.erb (Duration: 6.9ms | Allocations: 1502)
I, [2025-02-03T23:16:55.424444 #45]  INFO -- : [4f9a7377-091f-4d1a-ab87-d3dcb1531119] Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 0.3ms | Allocations: 1784)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant