Coder Social home page Coder Social logo

Gitlab implementation about git-updater HOT 42 CLOSED

afragen avatar afragen commented on August 28, 2024
Gitlab implementation

from git-updater.

Comments (42)

afragen avatar afragen commented on August 28, 2024

Are we looking for support for gitlab.com, a local instance of gitlab on your own server, or both?

from git-updater.

aristath avatar aristath commented on August 28, 2024

I believe they should be the same thing... The only thing that changes is the domain!
So if it works for gitlab.com, it should also work for self-hosted version simply by changing the URL...

from git-updater.

afragen avatar afragen commented on August 28, 2024

Ok, I'll definitely look into this as there are huge issues in updating Bitbucket private repos.

Hopefully I'll have some time in the next couple of weeks.

from git-updater.

PixelbarEupen avatar PixelbarEupen commented on August 28, 2024

Do you have any news concerning this issue? We want to set up our own GitLab Server to develop WordPress websites and it would be great if your plugin would support it.

from git-updater.

afragen avatar afragen commented on August 28, 2024

I've just started to look at the Gitlab API but I've never used it an if you have I could use some help.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Branch gitlab is starting point for integration.

from git-updater.

tubiz avatar tubiz commented on August 28, 2024

@afragen thanks for creating the gitlab branch.
Have started working on the gitlab integration

from git-updater.

afragen avatar afragen commented on August 28, 2024

Hey everyone! GitLab integration is now in the develop branch. If you want to test, just use the branch switcher. 👍

It should also work with self-hosted GitLab by adding a GitLab Enterprise header to those plugins/themes hosted there.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Cool. Is it supposed to work with private Gitlab repos at this point.
Asking because i've tried and got "Download failed. Unauthorized" Not sure if because my repos server or the plugin.

from git-updater.

afragen avatar afragen commented on August 28, 2024

@lmartins you must have a GitLab private token in the settings. It seems all interaction via the GitLab API needs to be authenticated.

I haven't actually tried using a private repo, but the API didn't look like it was any different. I will check it out.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

@afragen Im on the develop branch but the settings don't have any input for the Gitlab credentials.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Do you have any GitLab hosted plugin's installed?

The setting is not displayed unless there are any. Installing public GitLab repos doesn't require a private token, but updating does.

I also have to do more testing with private repos.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Not sure im following, should I put the complete URL into the "Plugin URI" field?
I mean since this is a private Gitlab install Im guessing this is the only way to tell the plugin where to look at.

Still, when I insert http://git.multiweb.pt/multiweb/social-icons-widget into that field, I get as response:

Downloading install package from https://gitlab.com/multiweb/social-icons-widget/repository/archive.zip?ref=master…

Download failed. Unauthorized

The plugin seems to be translating the URL to something under the gitlab.com domain, which isn't the case here.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Darn I thought I had this worked out. Can you make sure you're on the latest develop by using the branch switch feature and reinstalling the develop branch. After doing this please try again and let me know.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Sorry, I thought I put this in. I forgot. I'll have it fixed later tonight as I'm on the road right now.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

No stress Andy, and many thanks for all the help.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Try now. I tried to test using the URI above but kept getting timeout errors.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Hi Andy, the timeouts you're getting are normal, this server doesn't accept external connections.
I've tried again and I can now install plugins. Once I do that, im now getting two error messages:

Social Icons (Webipack) was not checked. GitHub Updater Error Code: 401 
There is probably an error on the GitHub Updater Settings page.

and

You must set a GitLab Private Token.

Saving the private token in the plugin settings seems to make no difference.

from git-updater.

afragen avatar afragen commented on August 28, 2024

If you go to the settings page you should see a space for setting the GitLab Enterprise Private Token. You will need to fill that in.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

I should have been clearer about that, those error messages persist after I fill that field with my account token.

from git-updater.

afragen avatar afragen commented on August 28, 2024

The error is an authentication error. Can you post a screenshot of the settings page with blurred out tokens?

from git-updater.

afragen avatar afragen commented on August 28, 2024

Unfortunately I don't have access to a GitLab Enterprise installation. It makes debugging difficult.

If anyone can give me an account to test with that would be great.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Heres the screenshot:
http://snpy.link/p2M39V

from git-updater.

afragen avatar afragen commented on August 28, 2024

Can you show the headers for the plugin? It should have the GitLab Enterprise header that has the base URI for your git server. In this case, GitLab Enterprise: http://git.multiweb.pt

If this header is missing you won't see the setting to put in your GitLab Enterprise Private Token.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

This is what I have on the plugin headers:

Gitlab Plugin URI: http://git.multiweb.pt/multiweb/social-icons-widget
Gitlab Branch:     master

Github Updater it is indeed asking for the private token, as you can see on the screenshot: http://snpy.link/p2M39V

But upon save that setting the error notification stays present.

from git-updater.

 avatar commented on August 28, 2024

Could the problem be similar to issue #232 ?

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Not really sure, although id doesn't sound like that.

from git-updater.

afragen avatar afragen commented on August 28, 2024

@lmartins that's not the correct private token for a GitLab Enterprise hosted plugin/theme.

If the plugin/theme doesn't have the GitLab Enterprise header you won't see that setting section.

You must add GitLab Enterprise: http://git.multiweb.pt

from git-updater.

afragen avatar afragen commented on August 28, 2024

The following headers:

GitLab Plugin URI: https://gitlab.com/afragen/test-gitlab-plugin2/
GitLab Branch:     master
GitLab Enterprise: http://gitlab.example.com

makes this show up in the Settings.

modified

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Ouch, I missed that info and seeing the field "GitLab Private Token" I though that was it. Was unaware of the another value for Enterprise.

I don't think that what I have is an Enterprise service. We have a CE edition Gitlab self hosted which I believe is a bit different. I'll try get it working and let you know what I find.

from git-updater.

afragen avatar afragen commented on August 28, 2024

I think the Enterprise refers to self hosted.

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

Not really, the enterprise is the paid version of their service:
https://about.gitlab.com/features/

Sent from my iPhone

On 08/05/2015, at 21:56, Andy Fragen [email protected] wrote:

I think the Enterprise refers to self hosted.


Reply to this email directly or view it on GitHub.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Is the base URI for GtiLab Enterprise different than https://gitlab.com ?

Isn't GitLab Enterprise still self-hosted?

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

To anyone using a self-hosted Gitlab CE and Github Updater, have you managed to find the "GitLab CE or GitLab Enterprise Private Token" info?

Github updater asks for two values, "GitLab Private Token" (which is available in the user account) and the one I mention above that I can't find anywhere.

from git-updater.

afragen avatar afragen commented on August 28, 2024

@lmartins are you referring to the setting in GHU or a private token listed in GitLab CE/Enterprise?

from git-updater.

lmartins avatar lmartins commented on August 28, 2024

@afragen
Im referring to the second of the two inputs after GHU installs a plugin from Gitlab.
The plugin has now the header as you mention, removed and reinstalled just to be sure.

Regarding the last question, I thing self-hosted would be adequate to both version CE and Enterprise. Im just wondering if there's really two tokens for the Gitlab's CE, as I've failed to find one on our install. That was the confirmation I was looking for.

Also considering that the user token gives him rights to use Gitlab's API, im not sure what would be the use of the "generic" token, but this is just me trying to understand what im failing to grasp.

from git-updater.

afragen avatar afragen commented on August 28, 2024

The first token is for GitLab.com. The second token would be for any self-hosted GitLab.

from git-updater.

afragen avatar afragen commented on August 28, 2024

If you aren't using a plugin from GitLab.com then you shouldn't get an error asking for that token. If I can figure out a way to hide it I will as that should avoid confusion.

from git-updater.

afragen avatar afragen commented on August 28, 2024

I've also been thinking about it and perhaps using the term Enterprise might be better. 2 of the self hosted solutions use this term, GitLab CE being the third.

from git-updater.

afragen avatar afragen commented on August 28, 2024

OK, accepted headers are GitLab CE and GitLab Enterprise. The Settings are more explicit and report a GitLab.com Private Token or a GitLab CE or GitLab Enterprise Private Token.

Please test and let me know how it works. Thanks.

from git-updater.

afragen avatar afragen commented on August 28, 2024

I've deleted a number of my posts here that referred to different headers so as to not be confusing.

from git-updater.

afragen avatar afragen commented on August 28, 2024

Closing as this should now be feature-complete and in develop.

from git-updater.

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.