Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Adam Grare
@agrare
@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
MelsHyrule
@MelsHyrule
@Oferlis commented on ur PR with what i think are the next steps for ur PR
Ofer Lis
@Oferlis

The message I sent to @MelsHyrule:
Hey, thank you for the reply here.
The new UI branch I opened is here: https://github.com/Autosde/manageiq-ui-classic/tree/ofer/311468-filter_events_with_storage_system
It shows the changes I made to the form and the related JS files.
The issue I'm having is in the app/controllers/application_controller/timelines.rb file.
In the old PR Adam replied that adding provider-specific code is not recommended, but I could not find a workaround,
for the filtration purposes I need to add a property to the object or another local variable.
Adam's comment: https://github.com/ManageIQ/manageiq-ui-classic/pull/8424#discussion_r969772342

Do you see any other way I could make it work and approved?

1 reply
Luka Potočnik
@lpoto

Hi, I have defined a dialog and a button for the 'Provider' object type, but when selecting the button from the Physical Infrastructure Provider, the following error occurs:

FATAL -- development: Error caught: [ActionController::UrlGenerationError] No route matches {:action=>"dialog_load", :controller=>"ems_physical_infra", :dialog_locals=>{:resource_action_id=>183, :target_id=>2, :target_type=>"ext_management_system", :real_target_type=>"ExtManagementSystem", :dialog_id=>3, :api_submit_endpoint=>"/api/providers/2", :api_action=>"Create Incident", :finish_submit_endpoint=>"/ems_infra", :cancel_endpoint=>"/ems_infra", :open_url=>false}, :id=>"2"}

Does anybody have any pointers on how to tackle this problem?

Adam Grare
@adam:grare.com
[m]
@lpoto: I'm not familiar yet with dialog_load but I see GET dialog_load in config/routes for e.g. ems_infra and ems_cloud (https://github.com/ManageIQ/manageiq-ui-classic/blob/master/config/routes.rb#L1126)
it looks like the method is defined on the base ApplicationController so no need to include anything in the controller as far as I know
Luka Potočnik
@lpoto
Great, thanks! That worked.
Adam Grare
@agrare
:heart:
Brandon Filion
@bfilion_gitlab
hi All, curious if anyone is seeing a similar issue we are in our environment. Recently upgraded/deployed najdorf 1.3 and when going to the Services, Requests page and opening the drop down to help filter the Requester, I only get an All option and not the individual users like we used to. Looking through the logs, there doesn't appear to be any errors after i open that dropdown. Here is what I see:
image.png
Luka Potočnik
@lpoto
Hello, I was wondering if is possible to create custom actions for a collection that is not one of the following: cloud_tenants, cloud_volumes, clusters, container_nodes, data_stores, generic_objects, hosts, providers, templates, vms.
As an example, could I create it for physical_servers? I have managed to enable custom buttons for the PhysicalServer class but when creating a button it does not register it under the collection's actions, therefore when committing a dialog from one of the physical servers an error is returned, as the action is not supported for the resource.
(here are the ui changes i made to enable the buttons)
Jason Frey
@Fryguy
I would expect physical servers to be able to have custom buttons - if not, it's possible that just needs to be updated as a target for custom buttons - feel free to open a PR or at least an issue
Or Gur
@OrGur1987
hello there,
we at the autosde provider are trying to enhance our cloud_volume.rb model, which is used by the ui cloud-volume-form.schema.js.

we would like to add a multi-field of “capabilities” which the user selects, and then use the selected capabilities to filter options on a field of “services”.
  • is there a way to use an onChange function in the ruby module?
  • is it possible to access the selected values back in the ruby module, or are they only selected and made available after the ruby is rendered to JS?
    • if the latter: is there a way to use a sub-module which will enable us to filter and return the filtered services to the service field :options attribute?
:fields => [
  {
    :component => "select",
    :name      => "required_capabilities",
    :id        => "required_capabilities",
    :label     => _("Required Capabilities"),
    :options      => capabilities, 
    :isRequired   => true,
    :isMulti => true
  },
  {
    :component    => "select",
    :name         => "storage_service_id",
    :id           => "storage_service_id",
    :label        => _("Storage Service"),
    :isRequired   => true,
    :validate     => [{:type => "required"}],
    :options      => services,  # here we would like to filter based on the selected capabilities
    :includeEmpty => true,
    :isDisabled   => false
   },
5 replies
Jason Frey
@Fryguy
@OrGur1987 The component we use there is called DDF, so anything in DDF is available to us. You can see more details at https://data-driven-forms.org/
Having values in one place modify other places might be possible - I know @DavidResende0 was looking at that for our other forms, particularly in the dynamic dialogs
Jason Frey
@Fryguy
Udhayakumarpt
@Udhayakumarpt
Hello, I have scheduled reporting in manageiq ,but did not receive the reports via email
Udhayakumarpt
@Udhayakumarpt
Can you let me know whether you have facing the similar issue?
Jason Frey
@Fryguy
@Udhayakumarpt If I recall, the schedule only executes the report but doesn't email it? Or is there a setting to email?
Lauferin
@Lauferin

Hi!
I'm trying to add a search box for some pages where there aren't.
For example, in Storage -> Volume Mappings, or in Storage -> Host Initiator Groups. Or in any page entering through a specific Storage Manager.
I'll leave an example below.

After having done a lot of research, I see that in files _center_div_with_listnav.html.haml and _center_div_no_listnav.html.haml the condition of showing the search bar is "if show_search?". I've looked for that and I got to the file page_layouts.rb to def show_search?, from there I got to application_helper.rb to def display_adv_search. In the list there I added host_initiator_group and volume_mapping and it works.
But I'm still having a hard time trying to understand how to add it to all the pages when entering them through a specific Storage Manager.
Do you have any idea?

Screen Shot 2023-01-09 at 11.54.12.png
Screen Shot 2023-01-09 at 11.54.24.png
Screen Shot 2023-01-09 at 11.54.38.png
Udhayakumarpt
@Udhayakumarpt
@Jason Frey Not sure , I thought someone would have solution for this issue
Ofer Lis
@Oferlis
Hey all,
I'm getting the following error when using the Carbon StackBarChart. Any debugging efforts so far got nothing.
Has any one encountered anything similar?
Screen Shot 2023-01-19 at 18.17.53.png
Or Gur
@OrGur1987

Hi,
i'm adding a storage_service to the storage_manager ui, and i'm using existing UI's as reference (storage resources, host initiators and such..).
I still haven't opened a PR but my changes can be viewed here:
https://github.com/ManageIQ/manageiq-ui-classic/compare/master...Autosde:manageiq-ui-classic:storage_services_endpoint

i'm getting an error when trying to access the show_list and show thru the URLs /storage_service/show_list#/ and /storage_service/show/1#/
on show_list I get:
uninitialized constant ApplicationHelper::Toolbar::StorageServicesCenter Did you mean? StorageServiceHelper StorageServiceController [storage_service/show_list]
even though I added app/helpers/application_helper/toolbar/storage_service_center.rb

and on show I get:
undefined method 'textual_group_properties' for #<ActionView::Base:0x000000000cacb0> Did you mean? textual_group_list [storage_service/show]
even though I added app/helpers/storage_service_helper/textual_summary.rb with a textual_group_properties method.

the UI for new works fine, and I'm able to create a new storage_service.

what am I missing? maybe it's something in another repo?
thanks