-
Notifications
You must be signed in to change notification settings - Fork 2
issues are behind, update and share the code #7
Comments
Ok, I found it. The importer is already at https://github.com/bradfitz/issuemirror, but is not visible at all. Any plans to move it under cmd? |
issuemirror is a support library and is meant to be generic for any project. Actually, the plan was for github.com/bradfitz/go-issue-mirror to have zero code, and only data. But then it slowly grew code. servegoissues should really live in issuemirror, but oh well. I haven't yet checked in the generator anywhere. I'll keep this bug open about it, or you can file one under github.com/bradfitz/issuemirror, which is where the code will go (under cmd, like you said). |
If it's better, why don't we move it? I'm not opposed. Or do you mean that it's not worth the effort? Then again, if "issuemirror ... is meant to be generic for any project" is true, then |
I'd like to start mirroring a number of github project's issues so I could work with them all offline. Is there anything Go-specific about |
That's very, very easy.
Here's an exhaustive list of things that are Go-specific about
That's it. If you want to turn |
A single
I'm happy to help with implementing this (if the above explanation isn't enough), or implement it myself. The code is already meant to support this use case. You can see an example here. |
@bradfitz, in #6 (comment) you said:
Has that changed given what I told you above about what it takes to make a more general version of I want to keep working on FWIW, my suggestion would be for you to to review and merge #11, then move |
Committed the tool to update the issues in bradfitz/issuemirror@635c1c5 Still not running regularly, though. |
@bradfitz Is this project (as well as Or is there some use case that If you want to deprecate/remove this, I can easily redo |
I would LOVE servegoissues on top of maintner. And I would gladly delete these repos then. I'm sure I have servegoissues around if you can't find it. Let me know? |
Awesome! Glad to hear that.
Sorry, what do you mean? |
Maybe you misread when I said this:
I meant... "if you think It's easy to find, it's right here in this repo. ;) |
Please do not delete this repo until something equivalent at x/build exists. |
I'm working on the new @bradfitz, in 2016, you said:
I saw that the
However, it turns out only
So I guess it's not worth it. But let me know if you'd still prefer for me to make it possible to access multiple repos in the new
Otherwise, it'll continue to be http://localhost:8080/123 to access golang/go issue 123. |
I think I'll go with the http://localhost:8080/golang/go/123 scheme anyway, just so the code is general and works with any |
What font would you like the new I was going to just go with I'll... go with the Go font, and if you don't like it, we can revert to |
Ok, I'm done with the initial prototype. It's at a point where most things work, and whatever minor things are left (e.g., adding support for additional event types, colors for issue labels, etc.) are best handled as individual issues later on. There's one major known TODO left (making it update the corpus in background while Basically, I'd like for you to play with the current version and provide feedback before I spend more time on it. So now it's just a matter of deciding on a place for the package and getting it past code review. @bradfitz, where would you like the new |
That's just a maintnerd config thing. We can mirror more. Or other projects can choose different sets. Definitely keep the ability to view multiple. We should mirror the golang/oauth2 and golang/tour etc repos probably.
Let's just use sans-serif. I'm fine with the Go font personally but I always hear complaints that it looks bad on Windows or at some DPIs or zooms. I've never seen ugliness myself, but I'm not a font nerd. I'd rather just pick sans-serif neutrally and let users tell their browser what sans-serif they like.
Want to put it under golang.org/x/build/maintner for now? Somebody wanted to move maintner away to its own repo, which we might do later, but we'd do it while preserving history with a mirror of the git repo filtered away. golang.org/x/build/maintner/cmd/maintserv ? |
Sure. Is it fine it imports some of my dependencies from github.com/shurcooL? I'd really prefer not to have to vendor those. I promise to maintain them and not break the build (for more than 5% in a year). Also, worth noting, it'll only serve issues for now, not CLs or other data in
All right. I'll take them out when sending a CL tomorrow. (Bummer though, I got to really like them by now and want to see them in more places lol.) Although... Could we use it to start, and remove when someone complains? I doubt this is a tool that a lot of the public will be interested in, so maybe the target audience will appreciate it more. It'd be a chance to try it out, since that didn't work out on the Go blog. Well, I'm fine either way. |
That's fine.
maintserve is a good name even if it's only GitHub issues for now. And maintserve is still a good name if/when it does more. (I meant to include the trailing -e in maintserve earlier, but it's hot today and my brain is kinda mush)
Go font is fine if you care. We'll be the main users, and it makes us happy, so sure. |
Great! One last thing/question. I've decided to place the implementation of the So I made the PR to add the new |
Since that PR and the |
Sent CL 52932. Note that it depends on shurcooL/issues#5 to compile (you'll need to check out that PR's branch if you want to test it). |
maintserve is a program that serves Go issues over HTTP, so they can be viewed in a browser. It uses x/build/maintner/godata as its backing source of data. Note that it statically embeds all the resources it uses, so it's possible to use it when offline. During that time, the corpus will not be able to update, and GitHub user profile pictures won't load. This is an iteration of an existing command named servegoissues, with import path github.com/bradfitz/go-issue-mirror/cmd/servegoissues. That program served the same purpose, but was located in another repository. It used a "previous generation" approach to having a corpus of GitHub issues data for Go projects, namely the github.com/bradfitz/go-issue-mirror/issues package, which used github.com/bradfitz/issuemirror technology. The intent of maintserve is to replace servegoissues. It uses the golang.org/x/build/maintner/godata package as its source of data, which is built on top of the golang.org/x/build/maintner technology. Currently, maintserve has 2 types of pages: - Index page, which lists repositories. - Issues pages, which display a read-only version of issues. This functionality is implemented in external issuesapp package. By default, maintserve starts as an HTTP server at on port 8080, so you should visit http://localhost:8080/ in a browser after running the command. Note that the first run may take a while, since godata.Get will need to download the entire corprus: The initial call to Get will download approximately 350-400 MB of data into a directory "golang-maintner" under your operating system's user cache directory. Subsequent calls will only download what's changed since the previous call. Helps bradfitz/go-issue-mirror#7. Depends on shurcooL/issues#5. Change-Id: I421147df08c6f664afff0e70abb5d6aa6a42b2d5 Reviewed-on: https://go-review.googlesource.com/52932 Reviewed-by: Brad Fitzpatrick <[email protected]>
That CL is merged, thanks for reviews! The next generation version of
Anyone can @rakyll, you said in #7 (comment):
Can you please try out the new command and let me know if you consider it equivalent, therefore making this repo obsolete? Or is there anything else that needs to be ported from here? As far as I can tell, this repository (and maybe https://github.com/bradfitz/issuemirror) are now completely superseded and can be safely deprecated (or removed). Let me know if that's not the case. |
maintserve supercedes servegoissues. Make this note so that it's clear that maintserve should be used instead. Also, I'm not maintaining/supporting servegoissues anymore, so I want that to be documented too. Updates #7.
maintserve supercedes servegoissues. Make this note so that it's clear that maintserve should be used instead. Also, I'm not maintaining/ supporting servegoissues anymore, so I want that to be documented too. Updates #7.
I enjoy the idea of searching and being able to access the issues offline, but the master seems to be always a bit behind the current issue tracker if I depend on this repo.
Could you share the code that generates the repo and so we can update the index locally ourselves if the upstream is behind?
The text was updated successfully, but these errors were encountered: