CDM icon indicating copy to clipboard operation
CDM copied to clipboard

Load schemas from VSTS-repos

Open eliebe-5 opened this issue 6 years ago • 5 comments

We are using the CDM as a model in an integration project, we store our schemas in our repo on vsts, and such had a need for vsts compatibility for the entity browser. Might as well make a pull-request if anyone else would need this functionality.

You need to generate a pass-token for your vsts-repo and using the vsts-api write an uri to your schema path. ex: https://{instance}.visualstudio.com/{collection}/{team-project}/_apis/git/repositories/{repository}/items?scopePath={/path/to/schemas}&recursionLevel=Full&includeContentMetadata=true&api-version=4.1

eliebe-5 avatar Sep 17 '18 11:09 eliebe-5

CLA assistant check
All CLA requirements met.

msftclas avatar Sep 17 '18 11:09 msftclas

@JeffBern Hi, since rather quiet in the issue discussions and this pull request I wonder if you are accepting any "external" issues/questions and pull requests?

Cheers, Mario

mariotoffia avatar Sep 19 '18 11:09 mariotoffia

@mariotoffia, @eliebe-5, actually I was astonished and delighted to see the contribution. I have also been digging out from a pile of issues at work, so sorry for the silence. I have some concerns that we should figure out. (1) The entity browser was put together very, very quickly by someone who doesn't know how to make a website (me) and was meant as a temporary visual aid while a more professional version is being developed. The person managing that effort keeps begging me to stop adding features to the 'developer centric' tool that I made. I like your additions, but I think they should go into the 'better' version of the browser that is being worked on. I will pass the code along of course. (2) The index.html and viz-controller.js files are actually generated from the GitHub-pages-gen code in the tools directory. So if we did take the changes into the 'ugly' tool (I have grown fond of it, so I can call it ugly and feel ok with that) then the code changes need to go into the typescript and template html files in that directory.

JeffBern avatar Sep 19 '18 17:09 JeffBern

@eliebe-5, can you send me an email using my GitHub name but with Microsoft.com as the domain? I would love to understand better what you are doing with the CDM model.

JeffBern avatar Sep 19 '18 17:09 JeffBern

@JeffBern Is the new browser open source as well(?) since we're in the works of have a thesis worker do a design surface for relational diagram and the ability to edit schemas in the browser with full git support. We where aiming at doing three pull request:

  1. Git support (pull, push, branch, …)
  2. Readonly high level design surface with entity and important properties along with their relations
  3. CRUD support for entities, attributes etc.

@eliebe-5 Can explain what we're using the CDM schemas for :)

Cheers, Mario

mariotoffia avatar Sep 19 '18 18:09 mariotoffia