Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 10 2019 16:54
    Travis ManageIQ/manageiq-graphql (ivanchuk-2) passed (1405)
  • Dec 10 2019 16:36

    simaishi on ivanchuk-2

    (compare)

  • Nov 21 2019 19:10
    mfeifer labeled #32
  • Nov 21 2019 19:10
    mfeifer unlabeled #32
  • Nov 21 2019 19:10
    mfeifer labeled #32
  • Nov 08 2019 22:05

    Fryguy on master

    Optionally symlink spec/managei… Merge pull request #84 from agr… (compare)

  • Nov 08 2019 22:05
    Fryguy closed #84
  • Nov 08 2019 22:05
    Fryguy labeled #84
  • Nov 08 2019 22:05
    Fryguy milestoned #84
  • Nov 08 2019 22:05
    Fryguy assigned #84
  • Nov 08 2019 13:51
    miq-bot commented #84
  • Nov 08 2019 13:50
    agrare synchronize #84
  • Nov 08 2019 13:39
    agrare edited #84
  • Nov 08 2019 13:37
  • Nov 08 2019 13:28
    agrare opened #84
  • Nov 06 2019 17:47
    simaishi assigned #83
  • Nov 06 2019 17:47
    simaishi milestoned #83
  • Nov 06 2019 17:47
    simaishi labeled #83
  • Nov 06 2019 17:47

    simaishi on ivanchuk

    Test ruby 2.5.5, see: https://g… Merge pull request #83 from d-m… (compare)

  • Nov 06 2019 17:47
    simaishi closed #83
Nick LaMuro
@NickLaMuro

yeah, that one was a bit weird

I think previously it was just waiting for a task to be started, and then it creates the service_template on ansible_tower end in that task

and I think it also had to wait to get a reference ID for that job in tower before it could return sucessfully
Martin Hradil
@himdel
that sounds about right... the UI is hardcoded to flash Add of Repository "%s" was successfully initiated on success, that fits the idea
Martin Hradil
@himdel
wait no... I'm looking at entirely the wrong file
Catalog Item %s was saved
idk
Nick LaMuro
@NickLaMuro
yeah, me too, and I am "working" on this stuff as well :sweat_smile:
Nick LaMuro
@NickLaMuro
okay, I think this will fix the bug for new instance of embedded ansible going forward: ManageIQ/manageiq#18897
Daniel Berger
@djberg96
d-m-u
@d-m-u
yeah, yeah, yeah, i know, it's failing, and it's my fault, i'm working on it
Alexander Zagaynov
@AlexanderZagaynov
who can merge that? ManageIQ/manageiq-api#631
JVue
@JVue
Hello, having trouble getting the the user management action “set_current_group” (/api/users/:id) working - i’ve tried using the group description / href but I keep getting the return with msg: "Cannot set current_group - Must specify a current_group” (I’m looking to programmatically change the current group someone is assigned to via api - let me know if this function was not intended to do this) Thanks
{
    "error": {
        "kind": "bad_request",
        "message": "Cannot set current_group - Must specify a current_group",
        "klass": "Api::BadRequestError"
    }
}
Martin Hradil
@himdel

@JVue what exactly are you sending?

But, if it helps, here's how the Service UI is using it: https://github.com/ManageIQ/manageiq-ui-service/blob/master/client/app/core/navigation/navigation-controller.js#L230

(the use case this is for is a user changing their own current_group to one of their miq_groups. Not sure changing it for other users is supposed to work, but in theory, why not.)
JVue
@JVue
@himdel I’m posting exactly what the doco says:
{
  "action" : "set_current_group",
  "resource" : {
    "group" : { "description" : "EvmGroup-auditor" }
  }
}
use case - when a user consumes our internal API that talks to MIQ, they don’t have to worry about logging into miq first and changing their group to one that has the proper role first… our API will automatically change their current group to the proper one then revert back to their last group when done
(for permissions, we’ll use admin creds to set their group)
i think i tried changing my own group under my own creds and got the same message as above earlier
JVue
@JVue
yeah just tried again and got the same response as above… just trying to switch between groups that i’m a part of
{
  "action" : "set_current_group",
  "resource" : {
    "group" : { "description" : "EvmGroup-auditor” } <——— insert group name you want to switch to
  }
}
Martin Hradil
@himdel
@JVue What SUI is sending is slightly different...
        'action': 'set_current_group',
        'current_group': {'id': group.id}
which would probably explain that "Cannot set current_group - Must specify a current_group"
(maybe sending description isntead of id works too, I think the problem is with .resource.group vs just .current_group)
JVue
@JVue
@himdel let me give that a shot…
JVue
@JVue
Awesome! it works.. ( might want to update the doco to call out group ID only (as opposed to description or href) ) thanks much @himdel ! (http://manageiq.org/docs/reference/latest/api/reference/users)
Martin Hradil
@himdel
yay! :) Cc @abellotti ^^ (i'm not sure how API docs are generated, or from where)
Martin Hradil
@himdel
( => addressed in ManageIQ/manageiq_docs#1187 )
@himdel thanks
Martin Hradil
@himdel
thank you :)
Joe VLcek
@jvlcek
I tested with "action" : “edit"
Martin Hradil
@himdel
aah
Joe VLcek
@jvlcek
Testing now with "action" : "set_current_group”,
But it’s not working :(
JVue
@JVue
did “action” : “edit” work?
Joe VLcek
@jvlcek
yes
@JVue this example works:
JVue
@JVue
ok thanks @jvlcek
Joe VLcek
@jvlcek
@himdel can you please point me to where the SUI does this?
Joe VLcek
@jvlcek
@himdel thank you
JVue
@JVue
@jvlcek I tried the edit method and it returned:
{
    "error": {
        "kind": "bad_request",
        "message": "Cannot update attributes other than password, email, settings for the authenticated user",
        "klass": "Api::BadRequestError"
    }
}
my id is currently set to a group that has very restricted permissions …(not sure if this matters… it shouldn’t imo)
Joe VLcek
@jvlcek
I think that is your issue with that one.
JVue
@JVue
I changed my ID to admin role and it worked now
Joe VLcek
@jvlcek
:thumbsup:
JVue
@JVue
the set_current_group doesn’t appear to have this limitation tho
(the intent was to be able to change the user group regardless of which group is currently selected for them)