-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove domain model dependency from the compilation step and add it at deployment time #10
Comments
Regarding the point on "remove the old domain model update and download options from the knowledgebase manager", the current knowledgebase manager page has the following: The "Download ontologies.json" link needs removing as the list of domain models is now dynamic. The "Download" and "Upload new version" buttons against a specific domain model just deal with the NQ file and should probably be removed as I can't see why someone would want to do that now. If there is a new version of a domain model then it may well have new icons so just downloading/uploading the NQ isn't going to help. I guess there's a possibility that a domain model developer might want to just change the NQ. If @mike1813 thinks they are useful then let's hide those buttons unless you're in the developer mode (and also clarify that they are just about the NQ). |
As far as I can see:
I have used the Download button occasionally to get the (gzipped) deployed NQ file so I can do a text comparison to check if it is the version it claims to be. The reason this was necessary is because the domain model In future, that motive for retaining a Download button will go away, as the domain model
The first reason to keep the button is not a good one. In principle, we should only be using old models from the archive on the IT Innovation security project internal SharePoint, without alteration. If we need to change any of these models, we should add more 'live development' branches to the GitHub domain model project and tag the updates so the version info is automated. E.g. if we needed an update of the old v5e2-7-39, we would create a dev branch '5e', commit the v5e2-7-39 fileset, and go from there. The second reason is also not a good one. We should be directing people to get domain model versions from the GitHub domain model project. But this page is restricted to service administrators, so most of those people can't see it. On that basis, I would remove the 'Upload' and 'Download' button from this page, so we only have the 'Delete' button and (at least for now) the 'Access List' button. |
Instead of the 'Download' button, we could provide a link allowing users (not service administrators) to get a domain model. This should be added to the Dashboard or system model Properties, probably as a link under the domain model version info. This link could either:
The domain model I recommend that @scp93ch should review this suggestion and create new issues if this new 'user accessible KB download' option is something we should pursue. This depends on whether csv2nq could know the link or git command needed at the point when a CI pipeline is executed. I don't know enough about the CI pipeline to comment on that. |
…ontroller, and corresponding unit test. TODO: remove "download ontologies.json" link from UI that calls this.
…json. N.B. this should probably be deleted eventually, but similar functionality might be required for loading domain models from .zip bundles at deploy time
…empting to load the ontologies.json file. These should either be reworked or deleted if no longer required.
I've removed the dependency on domain-network artifact. Also gone further to remove ontologies.json and the main asset icons that were in the source tree (except fallback.svg). Functionality to download or update ontologies.json has also been removed. |
Regarding 'the following:
I've checked that the pages basically work without error. The knowledgebase manager displays nothing except the "Upload new knowledgebase", as you would expect. In the dashboard, you cannot currently create a new model when there is no domain model available (the "Create New Model" button is disabled"). TODO: add some kind of warning that there is no domain model loaded, etc |
…er into new class - DomainModelUtils
…ata" folder for domain bundles at start-up (when resetOnStart is true, etc). All located zipfiles are then extracted and imported to SSM.
…ed to (now removed) ontologies.json file. TODO: further work on PaletteGenerator to get info from domain zip bundle instead.
…er (zipfiles) and installation location
…o persisted kbInstallFolder, rather than /static/data and /static/images
…er than /static/data. Create new getImage REST method to get an image stored in kbInstallFolder (icons folder).
…lder. Remove tmp files after extraction, including uploaded zipfile. Some tidying up.
…lette generation and checking of domain models and palettes on start-up.
…onger required since removing the domain-network dependency. Update related docs.
…vailable. Tailor message depending on whether SSM is being run in test/dev or production mode.
…mport is deterministic. Warn user in the case of multiple zipfiles for the same domain URI
… (previously only domain.nq was allowed)
…sistence of data, and how to re-install knowledgebases
…ntroller. TODO: if we are sure that this feature is no longer required, we should remove the functionality in uploadNewDomainVersion.
…check that it doesn't already exist. If updating an existing one, check that user is uploading a kb with the correct graph URI.
This isssue is now ready to be reviewed, so I'll submit a pull request shortly.. The new functionality for installing default knowledgebase(s) should be tested. I have made fixes to the README file which hopefully explain the process. The domain-network dependency is now removed, so configuration related to that has also been removed. The ontologies.json file no longer exists, and all support for upload/download of this has been removed, along with the original static images. Regarding the old domain model update mechanism, I have removed support for uploading a domain model .nq or .rdf file. There was a misconception that update of the knowledgebase did not support .zip bundles, however this has been working for some time. I have improved the checking of uploaded zip bundles as follows:
|
…r for deployed data. Don't check domain models and palettes for unit tests, during start-up.
…folder is no longer used for palettes, etc
…=true, prior to (re)installing domain zipfiles
…en deleting a domain model (e.g. via GUI)
…lable, then redirect to KB Manager page (admin only)
We are currently part way through a process of changing the way domain models are handled. The knowledgebase manager page is able to upload a new (additional) domain model zip bundle including icon files, but at compile time we still have a dependency on a domain model and the previous loading mechanism is used.
*.zip
) in a specific filesystem location and load them all in; the filesystem location should be configured inapplication.properties
so that it can be overridden with an environment variable as necessaryThe text was updated successfully, but these errors were encountered: