Comments (8)
Reading a projects json from a URL is supported: https://github.com/chaoss/grimoirelab-sirmordred#projects. Can we close this issue @sanacl @jgbarah @jgbarah ?
from grimoirelab-sirmordred.
I'm not opposing this functionality, but I just wonder if it wouldn't be better to keep SirMordred as it is, and do that kind of stuff with ansible, or whatever the deployment tooling that people are using. (Just a comment, please ignore if you think I don't have enough context)
from grimoirelab-sirmordred.
@jgbarah the thing is in production we don't have a way to allow our users to modify the projects.json in real time. They have to wait for us until we apply the changes. This is why I see this needed.
If you think it creates a conflict with the community requirements let's discuss it :)
from grimoirelab-sirmordred.
No, no conflict that I can see. Just some extra complexity in SirMordred, which maybe could be dealt with the deployment tooling. In the case of ansible, I just wondered if anyone managing files in GitLab could update the projects.json file, and ansible will just check the repo whenever convenient, updating the local copy of the file if needed, and re-launching SirMordred afterwards.
Some basic approach to something akin to this is available at https://codereview.stackexchange.com/questions/175616/clone-a-gitlab-private-repo-with-ansible
But again, if you have this as a clear requirement, please just ignore the noise.
from grimoirelab-sirmordred.
@jgbarah the thing here is we should be coherent with the solution provided to read projects and identities files. If a solution with a bot like the one you propose is simpler I would buy it. In any case I don't know such cheaper solution based on a bot. On the other hand, if we set as a requirement that the tool should be easily dockerized, it is better to allow to read remote configuration files to avoid dealing with volumes and so on.
from grimoirelab-sirmordred.
OK, I see. No problem on my side.
from grimoirelab-sirmordred.
Perhaps it's the same requirement, but reading a .json
file looks quite similar to reading from an API. And AFAIK, ES stores things in json format, so it looks even more similar to reading from a query to ES.
Having said that, it would be easier to read and write from and in ES with a web UI, than modifying a .json file.
This way, the solution is more agnostic (not tied to @sanacl deployment needs).
Just my 2 cents
from grimoirelab-sirmordred.
I think that would amount (with respect to download) too specifying an url... Which could be pretty much the same as if we do that from GitLab, I think.
from grimoirelab-sirmordred.
Related Issues (20)
- Connections to the Sorting Hat database are not closed HOT 1
- Cannot index gitlab issues from gitlab-com project HOT 5
- Getting all projects from enterprise Gitlab HOT 5
- Vulnerability CVE-2021-45960 - CVE-2019-19814 HOT 1
- [utils] Can't find `menu.yaml` and `aliases.json` in `/sirmordred` HOT 2
- [doc] Error feeding raw from cocom while running `micro.py` HOT 6
- custom port mariadb for grimorelabs HOT 1
- Only run one data source when the database is not created by Mordred HOT 7
- [requirements.txt] No matching distribution found for grimoireelk HOT 2
- [utils] Turn on the help arg option in `micro.py` HOT 3
- SirMordred did not install with Python 3.9 (but did with Python 3.8) HOT 5
- sirmordred/micro.py execution halts with connection issue HOT 5
- Is it possible to add more than a label to the repositories HOT 1
- How to skip lfs object when clonging project HOT 5
- Add prefix to aliases entries
- Jira integration appears to be non-functional HOT 2
- "Limit of total fields [1000] in index [github2-pull_raw] has been exceeded" error for "github2:pull"
- grimoirelab dashboard no result found error
- Read secrets from another file
- Add devcontainer to use codespaces as dev environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grimoirelab-sirmordred.