Giter Site home page Giter Site logo

Comments (11)

conroyke56 avatar conroyke56 commented on July 2, 2024 2

Yeh. Totally understandable. Also handy for aggregating any number of repos. Doesn’t need to be large.

Much simpler to use than the main aggregator. I guess if someone is looking for a simple way to add multiple addons to Odoo at once, make it available, they will find it here with the script.

Thanks for your help 👍

I’m going to spend some time looking into the methods you suggest.
I enjoy learning all this. ✌️💛

from maintainer-tools.

conroyke56 avatar conroyke56 commented on July 2, 2024

So because I was looking for a way to manage this, I just went ahead and wrote a little phyton script as a tool. perhaps its useful to add to the oca maintainer tool.

Maybe now i have done this, i should convert this over to a pull request or something?
I am not really sure how to do that, or if this is best practice for managing a large number of repos.

Forgive me, I am very new to this.

This script is a very basic utility tool designed to allow users to interactively select directories from a predefined base directory.
The script provides a user interface through the command line, using the curses library, to display, navigate, and select/unselect directories. The script also offers functionality to set a base directory and add default directories.

When the script is run it:

  1. Loads any existing configuration from a file.
  2. Gives the user an option to set or change the base directory where the repos have been cloned to and set or change the default directories that should always exist in your Odoo config file.
  3. Displays an interactive list of directories from the base directory for the user to select.
  4. Once selections are made, it saves the selections to a file and prints out the selected paths combined with the default directories that can be copy and pasted to you Odoo config file.

The script also checks and prompts the user to install required Python libraries if they are not already present.

Future plans:
Adding exception handling in various parts of the script to make it robust.

Attached is the py file (as a txt, because I don't know how to upload a py file) and a brief readme.
readme Repo Select.txt

Repo Select PY v2.txt

from maintainer-tools.

rvalyi avatar rvalyi commented on July 2, 2024

pro-tip: https://github.com/acsone/git-aggregator

this is the basis. Atop of this you could use extra layers such as Doodba or Docky (and specially akretion/ak) but git-aggregator is definitely the basis. And yes to survive with Odoo, like it or not, you should have a pretty advanced git skills first.

from maintainer-tools.

conroyke56 avatar conroyke56 commented on July 2, 2024

I’m not sure that’s effective with a huge number of repos? Like if you were to clone all.

Could you give an example?
I’m struggling to work it out.

Say I have a dodo instance, I want to clone all the OCA repos so they are available in Odoo.
I want branch 14.0.

How would I manage it with git aggregator?
Do I need to list all 200+ repos?

I wouldn’t say I have advanced git skills.
Maybe intermediate?
I mean I built that script, only took me about 8 hours haha.

I guess I could write a script that would create the yml file.

from maintainer-tools.

pedrobaeza avatar pedrobaeza commented on July 2, 2024

That's not a real need. You don't need to clone the 200+ repos for any project.

from maintainer-tools.

conroyke56 avatar conroyke56 commented on July 2, 2024

Why does the clone-all script exist?

For me when I’m developing and testing - Building for different scenarios - I do want to be able to just have it there ready.
Be able to update them at a push of a button.

When I deploy a production environment, I’d likely only deploy the necessary repos.
Perhaps my script is not a bad way to handle that situation.

from maintainer-tools.

pedrobaeza avatar pedrobaeza commented on July 2, 2024

You'll find that it's better to populate what you need instead of trying to have it all. The clone_all option is a very old one, useful in some automation scenarios, but not for real life.

Closing this, as this is not an issue, but a question.

from maintainer-tools.

conroyke56 avatar conroyke56 commented on July 2, 2024

Do you think anyone will have any use for my script? Is it worth putting it in the maintainer repo to work alongside the clone-all script?

from maintainer-tools.

pedrobaeza avatar pedrobaeza commented on July 2, 2024

Which script?

from maintainer-tools.

conroyke56 avatar conroyke56 commented on July 2, 2024

Which script?

It’s in my second comment on this request.

#575 (comment)

I attached the script and a readme.

from maintainer-tools.

pedrobaeza avatar pedrobaeza commented on July 2, 2024

Well, the fact that there's no demand during all these years for something like that, may point to not being needed, but I let others to raise their hand to say if it's useful.

from maintainer-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.