-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move language track icons into track repositories #2925
Comments
On it! I imagine that this should also be added to future course checklists? |
Yepp! In here somewhere https://github.com/exercism/x-template |
Encountered a slight setback. I'm uncertain of the best approach for grabbing track images for objects that have a I almost considered making an API call in the track_image helper, but I think that might be too much for a view helper. Instead, I'm thinking I'll create a helper for the routes that can be responsible for fetching a track's image url. The fun part will be associating the images with the appropriate objects before sending everything to the view (e.g. notifications route) Wonder if it's worth caching track images? Not sure what sort of load Exercism is under, but I can imagine those API calls adding up when someone has a large amount of notifications. |
I'm going to inline the whole x-api into exercism.io, so the HTTP calls will go away eventually. In the meanwhile I think we should deliver the url for the images along with the rest of the track-level data, which I believe gets cached. It's accessed via |
Oh, I think that's what you did over in #2941 except that the x-api isn't delivering the images yet. |
Ah, ok - I saw that method and assumed it was a separate API call. It'll work perfectly! Inlining x-api sounds interesting, excited to see what that looks like. I've been serving the images locally with x-api. I'll go ahead and submit a PR for that 😄 Thanks! |
I've created this endpoint in a PR - |
Let's provide the endpoint rather than assuming it—that way we can change our mind about where we serve it from without the web app having to know about the change. |
That makes sense. The moment I typed the word "assumption" I knew something wasn't right there. Thanks for the feedback! Should be able to get to these changes tonight. |
Excellent. I'm writing up that blazon issue now. |
I tried to submit a PR for the xphp track but came up with this error in Travis:
Does anyone know how to solve this? Thanks |
Yeah, stick "img" in the "ignored" section in the config.json. |
eureka! |
Aaaaand: @ryanplusplus is updating configlet to ignore the img directory by default, so once that's done we won't have to stick it in the config. |
See exercism/exercism#2925 for more details.
See exercism/exercism#2925 for more details.
See exercism/exercism#2925 for more details.
See exercism/exercism#2925 for more details.
See exercism/exercism#2925 for more details.
See exercism/exercism#2925 for more details.
See exercism/exercism#2925 for more details.
I noticed the list of opened issues stopped at |
Dammit. I bet I got rate limited and my script didn't report it. Thank you! |
See exercism/exercism#2925 for more details.
This has been done. |
It doesn't make sense to keep track-specific content in the main repository. It would be much easier to manage if this were in the respective language track repositories.
I suggest that we:
img/
in each track repository at the root level (if it doesn't already exist).icon.png
and optionallyicon.svg
The text was updated successfully, but these errors were encountered: