Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Brandon Filion
@bfilion_gitlab
@Fryguy ultimately what I am trying to do is change the text from "Entered text should match the format: ^(?=.{1,15}$)(?!.*.)[^\nA-Z]+$" to a more custom message. I have found the following entries in a couple different files : ("Entered text should match the format:') + ' ' + regexPattern". I first found it in src/dialog-user/services/dialogData.ts, but updating and restarting our evmserverd does not result in a change of that message to the end user when validation of the text field element fails.
@Fryguy yes sorry this is a custom service dialog we created
the field/element I am attempting to edit the validation failed message on a Text Box
Jason Frey
@Fryguy
ah ok - custom service dialog doesn't have a way to change that specific text (though that's a good enhancement request), but what most people do is either a) put a readonly textarea above it and put whatever text you want in there or b) change the help text (the :information_source: icon)

I first found it in src/dialog-user/services/dialogData.ts, but updating and restarting our evmserverd does not result in a change of that message to the end user when validation of the text field element fails.

yeah we don't run the source directly - we compile the code using webpack and that's what is run

Brandon Filion
@bfilion_gitlab
ok yeah that is what I considered if I couldn't track down how to change that message. thank you for the information I greatly appreciate it!
Jason Frey
@Fryguy
can you open an enhancement request regardless? I like the idea of people able to change the help text to something human-friendly
Brandon Filion
@bfilion_gitlab
sure thing!
EngelenH-kpn
@EngelenH-kpn_gitlab
Have a question about the 'my tasks' (and all tasks) screen. This is in Kasparov-1. When you browse to Settings --> Tasks you get a list of tasks either for yourself, or all. Clicking on one of the tasks results in routing error : ActionController::RoutingError (No route matches [GET] "/miq_task/true/2577"):
Could not find a lot about what even it is supposed to show or why it gives that error. Open to suggestions.
Kavya Nekkalapu
@kavyanekkalapu
@EngelenH-kpn_gitlab Can you share screenshot?
Are you talking about ManageIQ/manageiq-ui-classic#7683 ?
This is fixed in lasker
could you update your env?
EngelenH-kpn
@EngelenH-kpn_gitlab
Indeed, seems it didn't turn that up on any searches. Alas updating would not be an option as we are currently moving from Ivanchuk to Kasparov (and this is one of the problems that came up). Will have to see if maybe it can be 'retrofitted'. Thanks
Kavya Nekkalapu
@kavyanekkalapu
@EngelenH-kpn_gitlab Basically it is not a clickable row at all. Clickable row is a bug.
EngelenH-kpn
@EngelenH-kpn_gitlab
That was what we suspected on this side too comparing it to our Ivanchuk version. Thanks
llivne
@llivne

Dear MIQ team,
we found a bug in M release. some fields are missing only in Morphy version (Not in master) when trying to create new physical storage.

We traced the problem to faulty variable initialization.
we have an hidden text field in the form that use to determine if we are in edit mode or new mode. the default value of the field is empty string, and in edit mode it set to 'yes'. for some reasone in the M release the default value (empty string) is not set correctly, and the fix for that is adding to that field the following attribute: initialValue: ''

I dont know why the default value is not working like we expect in the M release. in the master branch it works like expected (empty text fields have value of empty string by defualt).

I opened a PR to fix this issue (ManageIQ/manageiq-ui-classic#8014), but maybe you can explain me why its not working only in Morphy? is it because ddf version differences ? other dependecies diffs?

Liran

Oleg Barenboim
@chessbyte
@kavyanekkalapu @agrare @Fryguy ^^
Jason Frey
@Fryguy
That PR was merged 5 days ago...is there still a question?
Oleg Barenboim
@chessbyte
nope - did not dig into that PR - thanks!
Kuldip-Nanda
@Kuldip-Nanda_gitlab

Not sure, but I am consistently getting PUMA error on the latest master

Puma starting in single mode...
* Version 4.3.11 (ruby 2.7.2-p137), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
[----] E, [2022-03-21T11:04:16.225334 #4484:945c] ERROR -- evm: MIQ(MiqWorker::Runner) ID [69] PID [4484] GUID [0d8c4da5-1b49-4f90-aa66-48ee4f75a5e1] An unhandled error has occurred: Address already in use - bind(2) for "0.0.0.0" port 5000
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:229:in `initialize'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:229:in `new'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:229:in `add_tcp_listener'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:106:in `block in parse'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:90:in `each'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:90:in `parse'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/runner.rb:161:in `load_and_bind'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/single.rb:98:in `run'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/launcher.rb:172:in `run'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/rack/handler/puma.rb:73:in `run'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/rack-2.2.3/lib/rack/server.rb:327:in `start'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/railties-6.0.4.7/lib/rails/commands/server/server_command.rb:39:in `start'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:29:in `block in start_rails_server'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:27:in `tap'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:27:in `start_rails_server'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:16:in `run'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/miq_worker/runner.rb:96:in `start'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/lib/workers/bin/run_single_worker.rb:128:in `<main>'
ERROR: An unhandled error has occurred: Address already in use - bind(2) for "0.0.0.0" port 5000. See log for details.

Please can anyone suggest/ any pointers how to resolve it

Joe Rafaniello
@jrafanie
You already have a puma process listening on port 5000
Paulo Júnior
@paulojuniore
how to make changes to manageiq-ui-classic and reflect as changes directly to rail server execution without needing to run bin/setup?
Paulo Júnior
@paulojuniore
Dear MIQ team, thank you in advance
Adam Grare
@agrare
@kavyanekkalapu ^
@paulojuniore typically you can make changes to ruby code in manageiq-ui-classic and rails server will automatically reload the changes when in development mode, but javascript changes I believe you have to re-compile but hopefully @kavyanekkalapu can say for sure
Kavya Nekkalapu
@kavyanekkalapu
@paulojuniore Are you making changes in ruby code or js?
For js changes, you can run bin/webpack --watch --follow in one terminal window all the time (first time it take 2 around minutes to finish). This automatically compiles js changes in couple of seconds after your changes. Make sure you have node 14.
Paulo Júnior
@paulojuniore
I'm making the changes in the js code. I will test! thank you! @kavyanekkalapu
Kuldip-Nanda
@Kuldip-Nanda
Happy Friday Folks, Just wanted to know if someone can point me to how to add a submenu Cloud/Providers/Server Groups
Brandon Filion
@bfilion_gitlab
image.png
Hi All, curious if anyone knows if this is a bug or intended? I am trying to update multiple VM ownerships and it in the ui it shows a "Dont Change" initially
it does appear to work and set the ownership correctly for the multiple vms selected, but am curious if this is a known issue and if I should not be updating owernship for multiple vms this way?
we are on ivanchuk-2
Adam Grare
@agrare
Hey @bfilion_gitlab I believe that means if you hit submit it won't change the owner or group, rather than telling you not to change it
Brandon Filion
@bfilion_gitlab
hmm, well I did it on 2 VM's just to see the outcome, and it successfully changed the ownership of the 2 I selected
Adam Grare
@agrare
yeah so if you only want to change one, just leave the other with "Don't change" selected and it won't change that one
Brandon Filion
@bfilion_gitlab
sorry I should have been more specific with what I am trying to do. I do want to change multiple VM's ownership, basically our vcenter provider we have setup, have a bunch of non MIQ created VM's and I'd like to mass update the ownership to the groups we have created in MIQ. I guess my main question/concern is that if I am trying to update multiple vm ownerships if going through the UI to do it is the best way
Pyon
@pyon-yx

Hi everybody.
I want to reload the datatable after the creation or deletion in any page.

def javascript_flash(**args)

After the delete task is added to queue, this method should be callled, and it will render the message.
I want to reload the datatable only in show_list page after the message is shown.
Can anybody help me on this issue?

Udhayakumarpt
@Udhayakumarpt
Hi Everyone
Do anyone have any sample codes for testing manageiq in rspec framework?
Jason Frey
@Fryguy
@Udhayakumarpt Can you be more specific? ManageIQ has a spec directory which is all RSpec
Kuldip-Nanda
@Kuldip-Nanda

Hi Folks, need some advice. I have to show a Relation under VM Instance detail in UI. So I have added

diff --git a/app/controllers/vm_common.rb b/app/controllers/vm_common.rb
index 71d594aa75..aaa6746a36 100644
--- a/app/controllers/vm_common.rb
+++ b/app/controllers/vm_common.rb
@@ -358,6 +358,11 @@ module VmCommon
     show_association('floating_ips', _('Floating IPs'), :floating_ips, FloatingIp)
   end

+  def placement_group
+    show_association('placement_groups', _('Placement Groups'), :placement_groups, PlacementGroup)
+  end
+
+
   def cloud_subnets
     show_association('cloud_subnets', _('Subnets'), :cloud_subnets, CloudSubnet)
   end

But I do not see this. So was wondering if I am missing something specific.

Kuldip-Nanda
@Kuldip-Nanda
We have a placement group (aka server group). Each VM can belong to a placement group. A Placement Group can have many VMs. I want to show this as a RelationShip in VM Details and have added these lines. So was wondering if I have to do anything more.
Vincent Febvre
@vfebvre
Hi, I have noticed that the ManageIQ UI downloads 'packs/vendor-xxx.js' every time a new page is loaded on the Firefox browser. This file is about 80 MB large, over Firefox's default max cache entry size (51,200 KB) and considerably slows down pages loading time. I can file an issue if anyone's interested.
Vincent Febvre
@vfebvre
^^^ Created issue ManageIQ/manageiq-ui-classic#8462 before I forget about it
Adam Grare
@agrare
@jeffibm ^
Ofer Lis
@Oferlis
Hi, I have left a comment on the PR here: https://github.com/ManageIQ/manageiq-ui-classic/pull/8424#issuecomment-1303852163
Could you please take a look?
MelsHyrule
@MelsHyrule
Hey @Oferlis ! So i did see your comment, let me type here some notes for you
So i saw the comment but I've been trying to fully understand what you meant by it, especially since you didn't include a link to your branch so i could see how you're tackling the code with the new changes that were recently introduced. This kind of makes it hard to follow your train of thought in the comment and what your referring to since we cant see the changes ur thinking of making