This file contains hidden or 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
diff --git a/package.json b/package.json | |
index 975d65d..eded79b 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -15,7 +15,7 @@ | |
"scripts": { | |
"prestart": "npm run -s build", | |
"start": "node -r newrelic dist/index.js", | |
- "dev": "nodemon src/index.js --exec \"node -r dotenv/config -r babel-register\"", | |
+ "dev": "nodemon src/index.js --exec \"node --inspect=0.0.0.0:9229 -r dotenv/config -r babel-register\"", |
This file contains hidden or 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
diff --git a/app/services/slug_change_service.rb b/app/services/slug_change_service.rb | |
index 590f3915de4..683a8dc3a2e 100644 | |
--- a/app/services/slug_change_service.rb | |
+++ b/app/services/slug_change_service.rb | |
@@ -30,7 +30,7 @@ def modify_page_slug! | |
end | |
def modify_stack_slug! | |
- modify_legacy_slug!(@entry.slug) | |
+ result = modify_legacy_slug!(@entry.slug) |
This file contains hidden or 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
diff --git a/app/frontend/packs/application.js b/app/frontend/packs/application.js | |
index b9316e776..6f265a41f 100644 | |
--- a/app/frontend/packs/application.js | |
+++ b/app/frontend/packs/application.js | |
@@ -38,9 +38,7 @@ const apolloProvider = new VueApollo({ | |
document.addEventListener('DOMContentLoaded', () => { | |
console.log(apolloProvider); | |
new Vue({ | |
- components: { App }, | |
- router, |
This file contains hidden or 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
diff --git a/server/middleware/auth.js b/server/middleware/auth.js | |
index 7bc58a561..94cb82b7f 100644 | |
--- a/server/middleware/auth.js | |
+++ b/server/middleware/auth.js | |
@@ -1,6 +1,7 @@ | |
var express = require('express'); | |
var passport = require('../../shared/passport'); | |
var router = express.Router(); | |
+var crypto = require('crypto'); | |
This file contains hidden or 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
diff --git a/app/mixins/controllers/shared/legacy_urls.rb b/app/mixins/controllers/shared/legacy_urls.rb | |
index 0a8d96f8fb3..5c2aabe92c3 100644 | |
--- a/app/mixins/controllers/shared/legacy_urls.rb | |
+++ b/app/mixins/controllers/shared/legacy_urls.rb | |
@@ -66,8 +66,11 @@ module Mixins::Controllers::Shared::LegacyUrls | |
# many apologies to my past and future selves! | |
unless url | |
if LegacySlug.community_has_legacy_slugs?(current_community) | |
- if legacy_slug = LegacySlug.for_community_and_slug(current_community, request.path.gsub(/^\//, "")) | |
+ path = request.path.gsub(/^\//, "") |
This file contains hidden or 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
| | draft story | pub'd story | | |
-------------------------------------------- | |
| draft stream | NO | YES | | |
| pub'd stream | YES | YES | | |
This implies: | |
A draft stream can only contain pub'd stories | |
A draft story can only contain pub'd streams | |
This file contains hidden or 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
type EntryBody { | |
components: [EntryBodyComponent] | |
} | |
# all components have a plaintext and an html representation | |
interface EntryBodyComponent { | |
plaintext: String | |
html: String | |
} |
This file contains hidden or 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
class ApiClient { | |
constructor(jwt) { | |
// parse + verify jwt | |
// set properties based on jwt claims | |
} | |
user() { | |
if (this.user_id) { | |
return towerRequest(USER_INFO, { user_id: this.user_id }); | |
} else { |
This file contains hidden or 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
diff --git a/test/chorus_auth_client_test.rb b/test/chorus_auth_client_test.rb | |
index c383a1528b8f..377455808ea5 100644 | |
--- a/test/chorus_auth_client_test.rb | |
+++ b/test/chorus_auth_client_test.rb | |
@@ -104,7 +104,8 @@ class ChorusAuthClientTest < Minitest::Test | |
end | |
def test_decode_jwt! | |
- VCR.use_cassette('decode_jwt') do | |
+ stub_request(:get, 'https://chorus-development.auth0.com/.well-known/jwks.json') |
This file contains hidden or 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
[ | |
{ | |
"type": "EntryBodyParagraphComponent", | |
"ops": [ | |
{ | |
"insert": "a man ", | |
"attributes": {} | |
}, | |
{ | |
"insert": "a plan", |