Tomas Jelinek has posted comments on this change.

Change subject: engine: support non-unique vm and template names across DCs 
(#912263)
......................................................................


Patch Set 6:

(2 comments)

https://gerrit.ovirt.org/#/c/41263/6/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetInstanceTypeQuery.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetInstanceTypeQuery.java:

Line 22:         if (params.getName() != null) {
Line 23:             instance = 
vmTemplateDao.getInstanceTypeByName(params.getName(), getUserID(), 
getParameters().isFiltered());
Line 24:         }
Line 25:         else {
Line 26:             instance = 
vmTemplateDao.getInstanceType(getParameters().getId());
> it needs to be a user query, of course it is in user portal. This is a part
also when touching the VM's instance type from REST using the "Filter: true"

Done
Line 27:         }
Line 28:         getQueryReturnValue().setReturnValue(instance);
Line 29:     }
Line 30: 


https://gerrit.ovirt.org/#/c/41263/6/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java:

Line 141: 
Line 142:     // VM Template based entities queries
Line 143:     IsVmTemlateWithSameNameExist(VdcQueryAuthType.User),
Line 144:     GetVmTemplate(VdcQueryAuthType.User),
Line 145:     GetInstanceType(VdcQueryAuthType.User),
> I understand. The query is used in places that got templates, which before 
at least it is used in REST API and when the Filter: True is set it has to be 
user query
Line 146:     GetAllVmTemplates(VdcQueryAuthType.User),
Line 147:     GetAllInstanceTypes(VdcQueryAuthType.User),
Line 148:     GetAllImageTypes(VdcQueryAuthType.User),
Line 149:     GetVmTemplatesDisks(VdcQueryAuthType.User),


-- 
To view, visit https://gerrit.ovirt.org/41263
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5f3244ec1885d54e58b475d0e74f59e26fa492a0
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <ol...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Ori Liel <ol...@redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjeli...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to