Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Miha Pleško
@miha-plesko
Capture.PNG
Joe VLcek
@jvlcek
@mkanoor and @himdel Thank you for answering the questions from @ThomasBuchinger
@ThomasBuchinger an issue would be great and you could even post a PR if you’d like.
@miha-plesko
curl --user admin:<pw> -k -X GET -H "Accept: application/json" https://${MIQ}/api/requests | jsonpp
Works for me.
@miha-plesko what MiQ version, user? Does the user have a valid role/group?
Miha Pleško
@miha-plesko
@jvlcek i'm on master branch of MIQ using admin user
Joe VLcek
@jvlcek
I’m using master from a week or so ago.
Miha Pleško
@miha-plesko
I think it's this change causing me problems ManageIQ/manageiq#19073
oh, most probably it's just schema migration to apply, lemme try
Joe VLcek
@jvlcek
@miha-plesko could be. My appliance does not have that change, it’s just a tad too old.
Miha Pleško
@miha-plesko
tadaaa it works, thanks for your help
Joe VLcek
@jvlcek
:thumbsup:
ThomasBuchinger
@ThomasBuchinger

@himdel How do you feel about a more generic "edit_attribute"-action, instead of just "set_enabled"?
I have the problem (in a different part of my pipeline), that the last domain to be imported has the highest priority, but I need to insert it between ManageIQ and any custom domains that exist at this point.

This isn't a big pain point for me right now, but it may be useful and shouldn't be a big deal to make it work for multiple attributes. Do you guys have a preference?

Jason Frey
@Fryguy
"edit_attribute" is already a thing via PATCH / PUT
not sure if that particular attribute is patchable though
ThomasBuchinger
@ThomasBuchinger
I am not sure if one would want a generic PATCH function, because I think changing a attribute (most likely) requires additional processing, as the /automate_domains-endpoint isn't backed by a database object, which can be updated automatically. (though I am not that familiar with rails)
Jason Frey
@Fryguy
pretty sure automate_domains is backed by a DB table, but I agree that enabled may not be a simple attribute update (I'd have to check)
Madhu Kanoor
@mkanoor
enabled is a boolean attribute in the MiqAeDomain, but it can only be applied to non system domains like ManageIQ, we don’t want users to disable the ManageIQ domain
Jason Frey
@Fryguy
yeah, but that's easily controllable
you just set a validation in the model
PATCH/PUT doesn't write to the DB directly...it still has to go through model validations and whatnot
ThomasBuchinger
@ThomasBuchinger
you are correct, automate_domains is backed. I'll try to get from being able to read rails code, to writing new rails code on the weekend
Martin Hradil
@himdel

I'd rather see a specific "enable domain" action, instead of a generic "set attribute" in this case.

After all, we're talking about enabling a domain, not about settting domain.enabled=true

(even if that's all that would end up happening)
((at least, to me enabling a domain sounds more like a black box method call than a simple attribute set))
Jason Frey
@Fryguy
I dunno...agree to disagree :)
Martin Hradil
@himdel
yeah, either works :)
ThomasBuchinger
@ThomasBuchinger
so 3 votes for "indifferent"?
Halász Dávid
@skateman
I'm struggling with retrieving a virtual attribute of an expanded subcollection, specifically for tagging, is it even possible?
GET /api/categories?expand=resources,tags&attributes=id,description
into that I'm trying to get in the categorization virtual attribute for eachtag
ThomasBuchinger
@ThomasBuchinger
@skateman Are you looking for this?
 GET /api/tags?expand=resources&attributes=id,name,categorization
{"href":"https://cf.example.com/api/tags/6062","id":"6062","name":"/managed/visibility/all","categorization":{"name":"all","description":"All Groups","category":{"name":"visibility","description":"Visibility"},"display_name":"Visibility: All Groups"}}
Halász Dávid
@skateman
@ThomasBuchinger nope, this would be too easy
I want it through the categories
Eugene Zapolsky
@izapolsk
Hi everybody. remote appliance templates don't have ems_id set in global region appliance. could you please advice what property should I use to get some particular provider's template ?
Eugene Zapolsky
@izapolsk
@all ^^
Jason Frey
@Fryguy
@agrare ?
I can't understand how that wouldn't be replicated
Adam Grare
@agrare
Are they archived? Do they have an ems Id in the remote regions
Gregg Tanzillo
@gtanzillo
@izapolsk The replicated templates should be identical between the lower region and the global
Eugene Zapolsky
@izapolsk
@agrare, sure thing, they have.
@gtanzillo, I'll submit BZ then. thank you
Gregg Tanzillo
@gtanzillo
Sounds good @izapolsk
Fabien Dupont
@fdupont-redhat
Hi. I have a question about ServiceTemplate order. There's test in specs/requests/service_templates_spec.rb, on line 618, that verifies that the order action is not available for unorderable template. Could anyone explain what are the criteria that remove this action from the actions list ?
Adam Grare
@agrare
hey guys, looks like master has been failing for a week on travis is anyone looking at this?
ManageIQ/manageiq-api#662 should fix it thanks @lpichler
Fabien Dupont
@fdupont-redhat
@abellotti do you want any other change on ManageIQ/manageiq-api#656 ?
Alberto Bellotti
@abellotti
lemme see ....
maybe add a spec that exercises the case where that failing order reason "Service ordering via API is not allowed", other than that LGTM!!