Author Topic: Can I distinguish manual versions from automatic versioning.  (Read 103 times)

ubacher

  • Oldtimer
  • ****
  • Posts: 2135
With
Code: [Select]
get('v1/files/relations'I can see masters and versions but I don't see any way to distinguish manual from automatic versioning.

Is there a work-around?

David_H

  • Jr. Member
  • *
  • Posts: 80
Re: Can I distinguish manual versions from automatic versioning.
« Reply #1 on: May 15, 2020, 11:46:52 AM »
Doesn't the versionState information on the returned file(s) contain the information you need? It should contain whether its a manual master/version or an automatic (or both!).

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 25433
Re: Can I distinguish manual versions from automatic versioning.
« Reply #2 on: May 15, 2020, 02:00:38 PM »
You setup a manual only version rule by using the Link via Manual Only setting.
Else the version is not different from any other version rule.

But each rule has a unique name. Can your app not tell by looking at the definitionName element of the version object?

The versionState of individual files & 4 (bitwise operator) returns 4 if the file is a manual master. And & 8 = 8 if the file is a manual version.
See the files/relations endpoint docs for more info.

The relations/definitions endpoint does not return this information. This was never needed.

ubacher

  • Oldtimer
  • ****
  • Posts: 2135
Re: Can I distinguish manual versions from automatic versioning.
« Reply #3 on: May 15, 2020, 02:58:53 PM »
Thanks. I was looking at the wrong thing. Versionstate does show me if the relation is manual.