-
Notifications
You must be signed in to change notification settings - Fork 308
First time setup fixes #3911
First time setup fixes #3911
Conversation
* Using `shell` to hint markdown on syntax highlighting. * Don't use `$` before commands. It makes copy-pasting much harder. * Normalize whitespace.
In order to make it clearer which steps are optional and which steps are not.
b17580f
to
0ff9b99
Compare
0ff9b99
to
5880819
Compare
Yay! Thanks and welcome, @deivid-rodriguez! I've made an onboarding ticket for you at gratipay/inside.gratipay.com#489. Feel free to use that to ask any random questions you have about Gratipay and how to contribute. :) |
5880819
to
a0b8333
Compare
Thanks @whit537 ! I'll ask there any questions I may have! |
Re: 89e037d
Ah, interesting! Makes sense. :)
Barely. We do much more Python testing than JavaScript. We have a ticket to adopt a different js testing framework that would hopefully make it easier for us to write js tests: #3684. I think I'm okay with dropping the js tests for now, though I'd feel better if we ported them to #3684 instead of dropping them entirely. Opinions, @rohitpaulk @aandis et al.? |
Re: 9755970
Perhaps. On the other hand, they're supposed to be removed by the test suite when it completes successfully. If they're still around it can cause problems—like if the test suite crashes, the files are still around, and then you hit http://localhost:8537/ and wonder why the heck your CSS/JS changes aren't showing up. It's because they're masked by the generated files from the test suite. I think @clone1018 got bit by this once? If the files are not git ignored then it's easier to notice them so you can clean up manually. |
The rest of your commits look great. :) |
Makes sense, I didn't know they were supposed to be removed. The test suite was crashing initially for me, because I got bitten by this. While working on figuring out what was the issue, I noticed those files and thought they were always supposed to be there, so I gitignored them. So I guess an improvement instead would be to get those removed even when the test suite errors. In any case, let me remove the commit! 😉 |
a0b8333
to
fee739b
Compare
👍, though to be honest I'm not sure why we have them in the first place. Our dynamic CSS and JS files are behind a CDN in production, and I suspect that pregenerating them at all is an over-optimization (adding complexity, you see ;). |
Is it here where those optimizations landed? Was there another reason? |
No, further back ... |
Here's where the files get written ... |
Looks like we didn't really answer the "why" question. The |
8ed11d9 ;-) |
|
Sounds good! :-) |
fee739b
to
9e46311
Compare
Thanks for the cleanup, @deivid-rodriguez! :-) |
I don't really remember, but looking back at that PR it seems to me that compiling was necessary. How do you properly cache by hash if you don't have a compiled file to hash?
CDNs aren't infallible, and neither is the Gratipay app, a bug in either one could result in more requests for assets. |
Yeah, but we don't necessarily need to store the compiled version, since we can assume that a recomputed version will be identical (because we trust that neither the inputs nor the computation will have varied). It might take some gymnastics to do this though, depending on how the caching and the hashing are implemented—and we have bigger 🐟 to fry. :-) |
No, you can't, you can't even check that the inputs haven't changed because you don't know what the inputs are. I think you underestimate the elegance of the assets compiler, it's less than 40 lines of code, it just works, and for any new Anyway, we both have bigger fish to fry, as you said. |
My wish for asset compiler is to be able to compile them as a separate self-sufficient step before running application. This is needed for transition from one CSS compiler to another. It would be nice to have something like Django's
|
:-) !m @Changaco
That doesn't sound right to me, but we can discuss in another ticket. |
Hi friends!
This PR is just an excuse to say hi! I've loved gratipay since a long time ago and really enjoy your way of building things. And I want to offer some help! These are the changes I made to get the app up and running and the tests passing. I must say I cheated a bit...
I also wanted to ask for some beginner pending tasks for someone who knows nothing about coding in python, but wants to learn. :)