Week 5: 24 June 2019 - 30 June 2019
Discussion
- Design of online importer and exporter
- PyGitHub library will be used to access the repository
- It could be better to show the tree of states with the parameters instead of a snapshot
- There will be a main xml file in the repository containing the names, descriptions and the folder name in which the behaviour and the snapshot/tree of states is present
- A demo repository will be created by me which will be used to create the online importer and exporter and once its complete we will shift to a jderobot repository.
- Design of parameterization of VisualStates -A list of added parameters need to be displayed during the import of a file
Task
- Implement the design of the exporter and importer
- Display the list of added parameters during import
Progress
- Created the demo repository for the library. Link
- Added the exporter to visual states. Pull Request
- It does the following:
- When user clicks on File > Library Export it asks user for the username and password
- Once the username and password have been verified it asks the user to input the name of the behaviour and a description of it.
- It then connects to the library repository and creates a fork on the users accounts or uses the already existing one.
- It syncs the master branch of the fork to the library via a pull request which is automatically merged.
- Then it checks for an existing branch of the same name as to be created, if a branch exists it writes the files and updates the catalogue on it or else it creates a branch of that name and writes to the one that has been created.
- Lastly it checks if a pull request is present from the branch to the library and if there isn’t one it creates one itself.
- It does the following: