accordproject / models

Accord Project Model Repository
https://models.accordproject.org
Apache License 2.0
29 stars 42 forks source link

fix(various): Typo in loan, refactor crypto -> digital #37

Closed mttrbrts closed 5 years ago

mttrbrts commented 5 years ago

Updates to various models in accordance with the new versioning scheme (#15).

mttrbrts commented 5 years ago

How do those appear on the published model library page?

I'm glad that you asked, it seems that I missed this file altogether! https://5d08f534bd97ad00090c6522--accordproject-models.netlify.com/time@0.2.0.html

mttrbrts commented 5 years ago

Have we tested import in Cicero with this naming scheme?

Yes, I just tried this with latedeliveryandpenalty, all looks good. cicero parse downloaded and cached the time model properly. image

jeromesimeon commented 5 years ago

How do those appear on the published model library page?

I'm glad that you asked, it seems that I missed this file altogether! https://5d08f534bd97ad00090c6522--accordproject-models.netlify.com/time@0.2.0.html

Screenshot 2019-06-18 at 10 56 20 AM

It would be nice if we could identify the latest version more easily.

Also, it doesn't seem to pick up all the versions? (I see only one loan?)

mttrbrts commented 5 years ago

It would be nice if we could identify the latest version more easily.

I'll make a small change to the show the full name in the library list for now. Eventually, these can be collapsed like on the templates pages.

Also, it doesn't seem to pick up all the versions? (I see only one loan?)

This is because the new loan model has a dependency on a model that doesn't yet exist. Perhaps I should have released each of these changes separately? That's not ideal if the changes really are related.

jeromesimeon commented 5 years ago

It would be nice if we could identify the latest version more easily.

I'll make a small change to the show the full name in the library list for now. Eventually, these can be collapsed like on the templates pages.

Also, it doesn't seem to pick up all the versions? (I see only one loan?)

This is because the new loan model has a dependency on a model that doesn't yet exist. Perhaps I should have released each of these changes separately? That's not ideal if the changes really are related.

That's a little bit confusing, but maybe we can fix those after the PR has been merged? The build.js script should probably be fixed.

mttrbrts commented 5 years ago

I've made a change to the build script to add the version parsed from the filename. image

Parsing the filename to extract the version string is pretty straightforward:

filename.split("@").pop().slice(0,-4);