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

Removed topology view and related code #7946

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

GilbertCherrie
Copy link
Member

Fixes: #7918

Removed the topology view and deleted all code related to it.

Before:
Screen Shot 2021-11-03 at 2 45 31 PM
Screen Shot 2021-11-03 at 2 44 06 PM
Screen Shot 2021-11-03 at 2 43 41 PM
Screen Shot 2021-11-03 at 2 43 35 PM
Screen Shot 2021-11-03 at 2 43 13 PM
Screen Shot 2021-11-03 at 2 42 51 PM

After:
Screen Shot 2021-11-03 at 2 56 38 PM
Screen Shot 2021-11-03 at 2 12 18 PM
Screen Shot 2021-11-03 at 2 12 11 PM
Screen Shot 2021-11-03 at 2 12 03 PM
Screen Shot 2021-11-03 at 2 11 57 PM
Screen Shot 2021-11-03 at 2 11 38 PM

@miq-bot add_reviewer @kavyanekkalapu
@miq-bot add-label enhancement

@kavyanekkalapu
Copy link
Member

@GilbertCherrie I feel we need to delete package too.

"kubernetes-topology-graph": "~0.0.25",

@Fryguy
Copy link
Member

Fryguy commented Nov 8, 2021

Some more files I think you can delete:

$ find . -name *topology*
./app/controllers/cloud_topology_controller.rb
./app/views/shared/topology
./spec/javascripts/fixtures/json/cloud_topology_response.json
./spec/javascripts/fixtures/json/infra_topology_response.json
./spec/javascripts/fixtures/json/network_topology_response.json
./spec/javascripts/fixtures/json/container_topology_response.json

@Fryguy
Copy link
Member

Fryguy commented Nov 8, 2021

cc @jrafanie 🔴 🔥 ✂️

when "network_topology"
_("Network Topology")
when "physical_infra_topology"
_("Physical Infrastructure Topology")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this method. 😭 At least, it's a little less complicated now. It's like trying to find Waldo looking for the when clause that doesn't follow the convention.

@jrafanie
Copy link
Member

jrafanie commented Nov 9, 2021

cc @jrafanie 🔴 🔥 ✂️

+14 −6,045 ... so awesome... Delete more code! 😉

@Fryguy
Copy link
Member

Fryguy commented Nov 9, 2021

LGTM; cc @chessbyte

@miq-bot
Copy link
Member

miq-bot commented Nov 10, 2021

Checked commit GilbertCherrie@57dee8f with ruby 2.6.3, rubocop 1.13.0, haml-lint 0.35.0, and yamllint
30 files checked, 6 offenses detected

app/helpers/application_helper/toolbar_chooser.rb

  • ❗ - Line 32, Col 107 - Rails/HelperInstanceVariable - Do not use instance variables in helpers.
  • ❗ - Line 32, Col 67 - Rails/HelperInstanceVariable - Do not use instance variables in helpers.

app/views/layouts/_tabs.html.haml

  • ⚠️ - Line 56 - Style/IfInsideElse: Convert if nested inside else to elsif.
  • ⚠️ - Line 57 - id attribute must be in lisp-case
  • ⚠️ - Line 58 - id attribute must be in lisp-case
  • ⚠️ - Line 62 - Avoid using instance variables in partials views

@kavyanekkalapu kavyanekkalapu merged commit 4a983e0 into ManageIQ:master Nov 10, 2021
@GilbertCherrie GilbertCherrie deleted the remove_topology_view branch November 10, 2021 22:17
@GilbertCherrie GilbertCherrie restored the remove_topology_view branch November 10, 2021 22:17
@GilbertCherrie GilbertCherrie deleted the remove_topology_view branch November 10, 2021 22:17
@GilbertCherrie GilbertCherrie mentioned this pull request Jun 8, 2022
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete existing topology views from all places.
6 participants