ministryofjustice / analytics-platform

Parent repository for the MOJ Analytics Platform
MIT License
14 stars 1 forks source link

"create app" button not working #23

Closed RobinL closed 6 years ago

RobinL commented 6 years ago

The create app button doesn't appear to do anything... create3

I've tried to debug in Chrome it looked like it wasn't sending any web requests

RobinL commented 6 years ago

Note type ahead didn't work on IMB tool

axemonkey commented 6 years ago

It doesn't send any XHR requests – the repo url/description data is prefetched server-side and fed to the page at render time. The problem here is that if the type-ahead doesn't match anything, then the URL is considered not-valid, since that means (in theory) the repo doesn't exist in the org. This means we don't technically allow free typed URLs.

Looking at the moment, there is no IMB-tool repo in the analytics org.

Do we want to amend this to allow free typed repo URLs?

RobinL commented 6 years ago

Ah, ok. So the problem is that: https://github.com/moj-analytical-services/IMB-tool does exist, but you can't see it because it's a private repo. Note that I can see it.

So I guess two options:

My guess is that adding support for checking which repos the user can see (including private repos) may be quite complex, so I'd suggest at this time it might not be worth the effort.

Does that all make sense?

axemonkey commented 6 years ago

Hmmm. Yes it does make sense, but I was pretty sure Andy's repo-info-fetching work fetched all the private repos as well as public, since most of the repos in the analytics org are private.

checks

Yes, I can add https://github.com/moj-analytical-services/crest_engineering_draft for example, which is marked as a private repo. I can also see it on github, so in theory I should be able to see all private repos in the org (I think).

Hmmm. Looks like something else is happening here.