Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Support pulling code.json from an agency's organization github.io page #238

Open
iadgovuser1 opened this issue May 4, 2017 · 8 comments

Comments

@iadgovuser1
Copy link

iadgovuser1 commented May 4, 2017

There's a comment in #183 that I think deserves its own issue. Getting files updated on official agency web sites is a herculean effort especially if it is updated often. It would be great if official agency GitHub organizations could host the code.json file under their main github.io page. For example:

@iadgovuser1
Copy link
Author

Another item to think about. Even if it was easy to post something to https://www.iad.gov, it uses an SSL certificate issued by a DoD CA. Can the retrieval mechanism handle that? This issue doesn't exist for https://www.nsa.gov since it uses a commercial SSL certificate.

@jfredrickson5
Copy link

We are hosting GSA's code.json at a different website by using a HTTP redirect. This way, the main agency website only needs to be updated once to implement the redirect. Code.gov honors the redirect and pulls code.json from the appropriate site. This approach might be useful for scenarios like yours.

@iadgovuser1
Copy link
Author

If establishing legitimacy is part of the problem, then you can see that https://github.com/iadgov is linked from the upper right corner of https://www.iad.gov/iad/index.cfm

@iadgovuser1
Copy link
Author

iadgovuser1 commented May 22, 2017

@jfredrickson5 I guess I don't see the point of additional hoop jumping like that even if it technically works. I also can't assume the people running the web site will do that for us either.

@katucker
Copy link

katucker commented Dec 8, 2017

+1 on the redirect suggestion. That facilitates automated updates of the machine-readable content that shouldn't require website administrators to review and approve, anyway. A similar approach is already used for data.json files.

@froi
Copy link
Contributor

froi commented Dec 8, 2017

Hello everybody. Code.gov dev here. As @jfredrickson5 stated some months ago, the code.gov harvester follows proper redirects (HTTP 301 and 302). If you are doing the "redirect" via javascript by using window.location for example, it won't work.

@DanielJDufour
Copy link
Contributor

@iadgovuser1 , is this still an issue?

@iadgovuser1
Copy link
Author

iadgovuser1 commented Feb 9, 2018

@DanielJDufour Let me check with some folks who visited there recently. I know this topic was brought up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants