CDM
CDM copied to clipboard
Load schemas from VSTS-repos
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
@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, @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.
@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 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:
- Git support (pull, push, branch, …)
- Readonly high level design surface with entity and important properties along with their relations
- CRUD support for entities, attributes etc.
@eliebe-5 Can explain what we're using the CDM schemas for :)
Cheers, Mario