hiran wrote: ↑Thu Aug 17, 2023 7:58 pm
Since I am more graphical oriented, could you help me draw some diagrams?
can u advise some online tool for this?
hiran wrote:
This is where I already offered help. Just let me know the scope: what should the script read, what should it write? Where does this input and output data reside? How shall the script be triggered? Probably I could have the script run whenever the data in the repo changes plus every once a week - as an example.
oh, it's not such a big problem, I'll write this script, at the moment I have only one small question - how to quickly and easily find out the current
sha of a file in the git - this is required to replace it through the API.
If interested, the script algorithm is as follows (approximately):
1) once every 15 minutes (this is done by cron) download the manifest from the old server (so far this is the only data source)
2) compare its md5 with the previous one
3) if md5 is different - upload a new file to git by api (root/api/1.0/overview for OXP manager), then convert the file to json (I already wrote this tool in perl), and also upload this json file to git by api (root/data/oxp.json for site JS)
This will allow us to migrate the main manifest file to git without losing the ability to edit it using the old server. In parallel, we can develop other ways to update this file, and over time we will completely replace the functionality of the old server.
add update1: block "Latest Expansion Releases..." on main page is hardcoded - I will change it to auto-update from root/data/oxp.json a bit later.
I'm sorry, but I'm very tired and it's time for me to sleep (utc+5) - tomorrow I have a hard day.
see u later.