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

gems/pending/util general cleanup #231

Open
37 of 50 tasks
Fryguy opened this issue Jul 10, 2017 · 13 comments
Open
37 of 50 tasks

gems/pending/util general cleanup #231

Fryguy opened this issue Jul 10, 2017 · 13 comments

Comments

@Fryguy
Copy link
Member

Fryguy commented Jul 10, 2017

Delete

Completed

Dedicated gem/process/application

Move

Completed

Dependencies

Completed

Keep in core [ref]

  • mount/* Move MiqFileStorage into core and provider specific gems #403
  • xml/* (core - to delete)
  • win32/* (delete or breakdown further - e.g. wimparser to gem)
    • MiqWinrm
  • miq-encode.rb
    • encode/decode
  • miq-exception.rb
  • miq-hash_struct.rb
  • miq-ipmi (core - to delete)
  • miq-process
  • miq-system
  • miq-logger-processor
  • require_with_logging

core extensions

Completed

cc @chessbyte

@Fryguy
Copy link
Member Author

Fryguy commented Oct 24, 2017

@agrare SyncDebug here is slated for the vmware_web_service. Do you think it can be moved there, or is it even useful?

@agrare
Copy link
Member

agrare commented Oct 24, 2017

@Fryguy It hasn't been used in forever, I'm okay dropping it. I'll put in a PR to vmware_web_service to remove it.

@gildub
Copy link
Contributor

gildub commented Jan 31, 2018

@Fryguy, could you please clarify the following:

  • By "Keep in core", do you mean manageiq/manageiq?
  • Also more specifically about "miq-ipmi": by "core - to delete" you mean move to core and delete from gems-pending ?

Also I wonder if the core-extensions could be just named "util" ?

@Fryguy
Copy link
Member Author

Fryguy commented Feb 26, 2018

@gildub "Keep in core" just means that it will stay as a ManageIQ specific util, because there's no alternative. Some thing may need renames or cleanups, but conceptually it will just stay. This could mean just making a util directory in ManageIQ and moving it there, or creating a manageiq-util gem or something to that effect.

@Fryguy
Copy link
Member Author

Fryguy commented Feb 26, 2018

For, miq-ipmi in our research we were hoping to just delete the IPMI feature altogether. If it has to stay, it will "Keep in core", other we delete it.

@gildub
Copy link
Contributor

gildub commented Feb 27, 2018

@Fryguy, thanks. that's what I assumed, so good we moved the discovery bit in Util then.

@miq-bot miq-bot added the stale label Sep 3, 2018
@miq-bot
Copy link
Member

miq-bot commented Sep 3, 2018

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

@NickLaMuro
Copy link
Member

@Fryguy
Copy link
Member Author

Fryguy commented May 15, 2020

SyncDebug removal is done - ManageIQ/vmware_web_service#55 & #471 cc @chessbyte @agrare

@djberg96
Copy link
Contributor

djberg96 commented Jun 15, 2020

@Fryguy you said: "miq-kernel#require_relative (keep? still doesn't work in eval)". But, using the ticket (http://bugs.ruby-lang.org/issues/4487) as a guide, it seems to no longer raise an error:

>cat eval_me1.rb 
eval(File.read('eval_me2.rb'), binding, File.expand_path('./eval_me2.rb'))

>cat eval_me2.rb 
require_relative 'eval_me1.rb'

>ruby eval_me2.rb # nothing
>ruby eval_me1.rb # nothing

I also tried loading them in irb:

irb(main):001:0> load "eval_me1.rb"
=> true
irb(main):002:0> load "eval_me2.rb"
=> true

I tried with both 2.5.7 and 2.6.5.

@Fryguy
Copy link
Member Author

Fryguy commented Jun 15, 2020

The irb thing is also about calling require_relative and eval directly in irb, not via load, but that seems to work too. Nice!

@djberg96
Copy link
Contributor

djberg96 commented Jul 8, 2020

@Fryguy We can update MiqSshUtil on your checklist, which was split out into manageiq-ssh-util and removed from here.

@Fryguy
Copy link
Member Author

Fryguy commented Jan 26, 2021

I tweaked the OP to collapsed the completed sections into Details twistys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

7 participants