-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
(Partially) Fix #2100: add cache slugs. #2208
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
126df37
Added cache slugs for images and modified all references to the images.
gvishal 8125aa9
Added interpolation service to get static image url, modified non-pag…
gvishal e0f0ff3
Modified /script tags
gvishal 7e5a68f
Added cache slugs for i18n
gvishal 5be7fdd
Fixed failing test and added i18n/prod to git ignore.
gvishal d9e18a4
Cache slugs new approach POC
gvishal 35bb24b
Modified references for images, scripts and i18n.
gvishal 10df46d
Modified gulp file and references to oppia.css and third_party css an…
gvishal 77da86a
Added slugs to extensions
gvishal 1350392
Fixed test for get_cache_slug
gvishal 4b49a9b
Modified build.py and deploy.py
gvishal 1d3c232
Addressed review comments
gvishal 60f33a4
Modify imports
gvishal 5f8bf7f
Modified src to ng-src and other review comments fixed.
gvishal 9d85731
Modified build.py
gvishal 48c4039
Minor change
gvishal 883e1c5
Removed feconf.CACHE_SLUG_DEV and refactored
gvishal aa4be4e
Added random cache slug
gvishal b165745
Refactored code.
gvishal 88c91e7
Modified references for extensions, added extensions to build process…
gvishal bbc31fb
Merge remote-tracking branch 'upstream/develop' into implement-cache-…
gvishal 9daa7b0
Fixed bug
gvishal 89a0196
Addressed review comments.
gvishal c5aa6c6
Fix failing tests
gvishal 1312642
Fixed bug.
gvishal 55d1b29
Added tests for urlinterpolationservice.
gvishal f8d95ed
Added interpolation for interactions and logic_proof.html
gvishal 57f6fdb
Merge remote-tracking branch 'upstream/develop' into implement-cache-…
gvishal 8cb8624
Addressed review comments
gvishal eeb9b5b
Addressed review comments
gvishal 74781cb
Removed unnecessary include from templates
gvishal 238c896
Merge branch 'develop' into implement-cache-slugs-2100
gvishal ad26ae9
Modified precommit linter script to fix endless waiting
gvishal 3b83d27
Commented script and added assets/scripts to exclusions.
gvishal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Modified /script tags
- Loading branch information
commit e0f0ff33fc50d0be638042c7bb93ffe1d5019663
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<h2>v0.0.0</h2> | ||
<p>For instructions: see the README file in /static/scripts.</p> | ||
<p>For instructions: see the README file in /static/dev/scripts.</p> | ||
|
||
<h3>Standard embedding of the latest version</h3> | ||
<oppia oppia-id="0"></oppia> | ||
<script src="http://localhost:8181/scripts/oppia-player-0.0.0.js"></script> | ||
<script src="http://localhost:8181/static/dev/scripts/oppia-player-0.0.0.js"></script> | ||
|
||
<h3>Standard embedding of version 1 of the exploration</h3> | ||
<oppia oppia-id="0" exploration-version="1"></oppia> | ||
<script src="http://localhost:8181/scripts/oppia-player-0.0.1.js"></script> | ||
<script src="http://localhost:8181/static/dev/scripts/oppia-player-0.0.1.js"></script> | ||
|
||
<h3>ERROR: No oppia id specified</h3> | ||
<oppia></oppia> | ||
<script src="http://localhost:8181/scripts/oppia-player-0.0.0.js"></script> | ||
<script src="http://localhost:8181/static/dev/scripts/oppia-player-0.0.0.js"></script> | ||
|
||
<h3>ERROR: 404 error</h3> | ||
<oppia oppia-id="fake_id"></oppia> | ||
<script src="http://localhost:8181/scripts/oppia-player-0.0.0.js"></script> | ||
<script src="http://localhost:8181/static/dev/scripts/oppia-player-0.0.0.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protractor tests always run on dev though, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that in deploy.py, after processing all the files we execute all the tests, which would probably run on dev? is that ryt? Would we wanna run tests on a simulated prod server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mm, good question. We are actually considering removing that because in practice travis will already have done that. So, I think it's ok to run on dev -- as long as travis checks pass, things are fine. We'll deal with prod later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, remove the TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change it to a comment: "Note that this only works in dev, due to the use of cache slugs in prod".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added