Some code cleanup#2
Conversation
robkooper
left a comment
There was a problem hiding this comment.
only think that seems not correct is the occurrence of an extra ß.
|
Hi @timyardley . Thank you for the contributions. A few comments:
Thank you! |
| private def addBagItTextToZip(pathToFolder : String, totalbytes: Long, totalFiles: Long, zip: ZipOutputStream, collection: models.Collection, user: Option[models.User]) = { | ||
| zip.putNextEntry(new ZipEntry(pathToFolder + "/bagit.txt")) | ||
| val softwareLine = "Bag-Software-Agent: clowder.ncsa.illinois.edu\n" | ||
| val softwareLine = "Bag-Software-Agent: clowder\n" |
There was a problem hiding this comment.
I couldn't find any specific information about what should go in this field. Did you find something regarding this? I saw something along the lines emails: clowder <https://clowderframework.org/>.
There was a problem hiding this comment.
the agent definition is typically the name of the software, along with versioning. For example, this is how a similar field is used in the HTTP standard:
https://en.wikipedia.org/wiki/User_agent
My reasoning here would be that at a minimum it should be clowder rather than a specific domain as a clowder instance can (and will) be installed in other locations than at NCSA
|
this is a generic scalastyle config file that was part of the basis used. not all issues were resolved. |
|
I prefer to not use bitbucket for public project pushes, so happy to provide this patch here on github. I don't really have the cycles to shift it over to the other repo. Moving it to develop branch shouldn't be much of a lift, but again up to you guys if you want to do it. I don't actively have the cycles to convert it over. My commits in the history gives the high-level of what each grouping of changes were... all minor cleanups, with some of the "domain" specific removals decoupling from NCSA. Future submissions I can direct to github/develop, your choice if you bring this in or reject it. I don't care about the contribution credit, as this is a trivial cleanup patch not anything worthy of note. |
|
Merged most of the changes in master. Left out formatting changes. Thank you! |
This has a variety of consistency code cleanups in it, some markup for fixme's and a changeover to clowderframework instead of clowder.ncsa for reference URLs