Skip to content

Commit

Permalink
Update loadtest utility with new GraphQL requests (#1142)
Browse files Browse the repository at this point in the history
They got outdated at some point. But updating them is easy: just open
Tobira (the homepage and some video page) and copy the graphql payload
from the dev tools.
  • Loading branch information
owi92 authored Mar 13, 2024
2 parents fe112e6 + 05b5f98 commit a8039f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/loadtest/src/gql_index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"query":"query RealmQuery(\n $path: String!\n) {\n ...UserData\n realm: realmByPath(path: $path) {\n id\n name\n path\n isMainRoot\n isUserRealm\n ownerDisplayName\n children {\n id\n }\n blocks {\n __typename\n id\n }\n canCurrentUserEdit\n ancestors {\n name\n path\n ownerDisplayName\n id\n }\n parent {\n id\n }\n ...BlocksData\n ...NavigationData\n }\n}\n\nfragment BlocksBlockData on Block {\n __isBlock: __typename\n id\n __typename\n ... on TitleBlock {\n ...TitleBlockData\n }\n ... on TextBlock {\n ...TextBlockData\n }\n ... on SeriesBlock {\n ...SeriesBlockData\n }\n ... on VideoBlock {\n ...VideoBlockData\n }\n}\n\nfragment BlocksData on Realm {\n ...BlocksRealmData\n blocks {\n __typename\n id\n ...BlocksBlockData\n }\n}\n\nfragment BlocksRealmData on Realm {\n path\n}\n\nfragment NavigationData on Realm {\n id\n name\n childOrder\n isUserRoot\n children {\n id\n name\n path\n }\n parent {\n isMainRoot\n name\n path\n id\n }\n}\n\nfragment SeriesBlockData on SeriesBlock {\n series {\n ...SeriesBlockSeriesData\n id\n }\n showTitle\n showMetadata\n order\n}\n\nfragment SeriesBlockSeriesData on Series {\n title\n syncedData {\n description\n }\n events {\n id\n title\n created\n creators\n isLive\n description\n syncedData {\n duration\n thumbnail\n startTime\n endTime\n tracks {\n resolution\n }\n }\n }\n}\n\nfragment TextBlockData on TextBlock {\n content\n}\n\nfragment TitleBlockData on TitleBlock {\n content\n}\n\nfragment UserData on Query {\n currentUser {\n username\n displayName\n canUpload\n canUseStudio\n canUseEditor\n canCreateUserRealm\n }\n}\n\nfragment VideoBlockData on VideoBlock {\n event {\n __typename\n ... on NotAllowed {\n dummy\n }\n ... on AuthorizedEvent {\n id\n title\n isLive\n created\n syncedData {\n duration\n updated\n startTime\n endTime\n thumbnail\n tracks {\n uri\n flavor\n mimetype\n resolution\n isMaster\n }\n captions {\n uri\n lang\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n showTitle\n showLink\n}\n","variables":{"path":"/"}}
{"query":"query RealmQuery(\n $path: String!\n) {\n ...UserData\n realm: realmByPath(path: $path) {\n id\n name\n path\n isMainRoot\n isUserRealm\n ownerDisplayName\n children {\n id\n }\n blocks {\n __typename\n id\n }\n canCurrentUserModerate\n ancestors {\n name\n path\n ownerDisplayName\n id\n }\n parent {\n id\n }\n ...BlocksData\n ...NavigationData\n }\n}\n\nfragment BlocksBlockData on Block {\n __isBlock: __typename\n id\n __typename\n ... on TitleBlock {\n ...TitleBlockData\n }\n ... on TextBlock {\n ...TextBlockData\n }\n ... on SeriesBlock {\n ...SeriesBlockData\n }\n ... on VideoBlock {\n ...VideoBlockData\n }\n}\n\nfragment BlocksData on Realm {\n ...BlocksRealmData\n blocks {\n __typename\n id\n ...BlocksBlockData\n }\n}\n\nfragment BlocksRealmData on Realm {\n path\n}\n\nfragment NavigationData on Realm {\n id\n name\n childOrder\n isUserRoot\n children {\n id\n name\n path\n }\n parent {\n isMainRoot\n name\n path\n id\n }\n}\n\nfragment SeriesBlockData on SeriesBlock {\n series {\n ...SeriesBlockSeriesData\n id\n }\n showTitle\n showMetadata\n order\n layout\n}\n\nfragment SeriesBlockSeriesData on Series {\n title\n syncedData {\n description\n }\n events {\n id\n title\n created\n creators\n isLive\n description\n syncedData {\n duration\n thumbnail\n startTime\n endTime\n tracks {\n resolution\n }\n }\n }\n}\n\nfragment TextBlockData on TextBlock {\n content\n}\n\nfragment TitleBlockData on TitleBlock {\n content\n}\n\nfragment UserData on Query {\n currentUser {\n username\n displayName\n canUpload\n canUseStudio\n canUseEditor\n canCreateUserRealm\n roles\n userRole\n }\n}\n\nfragment VideoBlockData on VideoBlock {\n event {\n __typename\n ... on NotAllowed {\n dummy\n }\n ... on AuthorizedEvent {\n id\n title\n isLive\n opencastId\n created\n syncedData {\n duration\n updated\n startTime\n endTime\n thumbnail\n tracks {\n uri\n flavor\n mimetype\n resolution\n isMaster\n }\n captions {\n uri\n lang\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n showTitle\n showLink\n}\n","variables":{"path":"/"}}
2 changes: 1 addition & 1 deletion util/loadtest/src/gql_video.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"query":"query VideoPageInRealmQuery(\n $id: ID!\n $realmPath: String!\n) {\n ...UserData\n event: eventById(id: $id) {\n __typename\n ...VideoPageEventData\n ... on Node {\n __isNode: __typename\n id\n }\n }\n realm: realmByPath(path: $realmPath) {\n referencesVideo: references(id: $id)\n ...VideoPageRealmData\n ...NavigationData\n id\n }\n}\n\nfragment NavigationData on Realm {\n id\n name\n childOrder\n isUserRoot\n children {\n id\n name\n path\n }\n parent {\n isMainRoot\n name\n path\n id\n }\n}\n\nfragment SeriesBlockSeriesData on Series {\n title\n syncedData {\n description\n }\n events {\n id\n title\n created\n creators\n isLive\n description\n syncedData {\n duration\n thumbnail\n startTime\n endTime\n tracks {\n resolution\n }\n }\n }\n}\n\nfragment UserData on Query {\n currentUser {\n username\n displayName\n canUpload\n canUseStudio\n canUseEditor\n canCreateUserRealm\n }\n}\n\nfragment VideoPageEventData on Event {\n __isEvent: __typename\n __typename\n ... on NotAllowed {\n dummy\n }\n ... on AuthorizedEvent {\n id\n title\n description\n creators\n created\n isLive\n opencastId\n metadata\n canWrite\n syncedData {\n updated\n duration\n thumbnail\n startTime\n endTime\n tracks {\n uri\n flavor\n mimetype\n resolution\n isMaster\n }\n captions {\n uri\n lang\n }\n }\n series {\n id\n title\n ...SeriesBlockSeriesData\n }\n }\n}\n\nfragment VideoPageRealmData on Realm {\n name\n path\n isMainRoot\n ancestors {\n name\n path\n id\n }\n}\n","variables":{"id":"evHOgXl61vdBT","realmPath":"/lectures/d-math/2021/spring"}}
{"query":"query VideoPageInRealmQuery(\n $id: ID!\n $realmPath: String!\n) {\n ...UserData\n event: eventById(id: $id) {\n __typename\n ...VideoPageEventData\n ... on Node {\n __isNode: __typename\n id\n }\n }\n realm: realmByPath(path: $realmPath) {\n referencesVideo: references(id: $id)\n ...VideoPageRealmData\n ...NavigationData\n id\n }\n}\n\nfragment NavigationData on Realm {\n id\n name\n childOrder\n isUserRoot\n children {\n id\n name\n path\n }\n parent {\n isMainRoot\n name\n path\n id\n }\n}\n\nfragment SeriesBlockSeriesData on Series {\n title\n syncedData {\n description\n }\n events {\n id\n title\n created\n creators\n isLive\n description\n syncedData {\n duration\n thumbnail\n startTime\n endTime\n tracks {\n resolution\n }\n }\n }\n}\n\nfragment UserData on Query {\n currentUser {\n username\n displayName\n canUpload\n canUseStudio\n canUseEditor\n canCreateUserRealm\n roles\n userRole\n }\n}\n\nfragment VideoPageEventData on Event {\n __isEvent: __typename\n __typename\n ... on NotAllowed {\n dummy\n }\n ... on AuthorizedEvent {\n id\n title\n description\n creators\n created\n isLive\n opencastId\n metadata\n canWrite\n syncedData {\n updated\n duration\n thumbnail\n startTime\n endTime\n tracks {\n uri\n flavor\n mimetype\n resolution\n isMaster\n }\n captions {\n uri\n lang\n }\n }\n series {\n id\n title\n ...SeriesBlockSeriesData\n }\n }\n}\n\nfragment VideoPageRealmData on Realm {\n name\n path\n isMainRoot\n ancestors {\n name\n path\n id\n }\n}\n","variables":{"id":"evPzriaF_4TSH","realmPath":"/lectures/d-math/2021/spring/401-3602-00L"}}

0 comments on commit a8039f5

Please sign in to comment.