Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

How to set "update-policy" property throught Roxy #569

Closed
romain-nio opened this issue Feb 24, 2016 · 5 comments
Closed

How to set "update-policy" property throught Roxy #569

romain-nio opened this issue Feb 24, 2016 · 5 comments

Comments

@romain-nio
Copy link

Hi,

I'm wondering if it's possible to set the "update-policy" property directly throught Roxy. I'm able to set it thourght API but I don't know how to do it with Roxy.

Thanks,
Romain.

@grtjn
Copy link
Contributor

grtjn commented Feb 24, 2016

If you mean assignment-policy on databases, then afraid not. I did see it when going through properties added in ML8, but this required a little more effort, not a straight-forward value assignment. Shouldn't be too difficult though, we have dealt with other properties that are similar in complexity..

@grtjn grtjn added this to the 1.7.3 milestone Feb 24, 2016
@grtjn
Copy link
Contributor

grtjn commented Mar 11, 2016

Sorry, pushing away to allow release of 1.7.3..

@grtjn grtjn modified the milestones: 1.7.4, 1.7.3 Mar 11, 2016
@rlouapre
Copy link
Contributor

This is for optimistic locking. I think it is already possible [1]

Just add it in roxy/rest-api/config/properties.xml:

...
<update-policy>version-optional</update-version>
...

Assuming rest-* properties are correctly set deploy rest or deploy modules

[1] - https://github.com/marklogic/roxy/wiki/REST-properties-format-change

@grtjn
Copy link
Contributor

grtjn commented Mar 18, 2016

Ah thnx, here the DMC docs on REST properties: http://docs.marklogic.com/REST/GET/v1/config/properties/[property-name]#config-properties

@dmcassel dmcassel modified the milestones: 1.7.5, 1.7.4 Oct 18, 2016
dmcassel added a commit to dmcassel/roxy that referenced this issue Oct 28, 2016
@dmcassel
Copy link
Collaborator

I just sent a PR that adds this property to the sample properties, so that it will be present in the file and easier to edit.

@dmcassel dmcassel self-assigned this Oct 28, 2016
RobertSzkutak added a commit that referenced this issue Oct 31, 2016
#569 adding update-policy to properties
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants