Skip to content

Commit

Permalink
experimenting with a new session uuid for each file
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 committed Jan 13, 2025
1 parent e11ca76 commit 3462779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default defineComponent({
this.$store.commit('zap/toggleShowExceptionIcon', false)
},
async loadInitialEndpoints() {
let endpoint = await this.$store.dispatch('zap/loadComposition')
let endpoint = this.$store.dispatch('zap/loadComposition')
if (endpoint) {
this.$store.dispatch('zap/updateSelectedEndpointType', {
endpointType: this.endpointType[endpoint.id],
Expand Down
18 changes: 1 addition & 17 deletions src/boot/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,13 @@ import axios from 'axios'
import { v4 as uuidv4 } from 'uuid'
import restApi from '../../src-shared/rest-api.js'
import * as Util from '../util/util.js'
const querystring = require('querystring')

let zapUpdateExceptions = (payload, statusCode, message) => {}

// You can set this to false to not log all the roundtrips
const log = false

let search = window.location.search
if (search[0] === '?') {
search = search.substring(1)
}
let query = querystring.parse(search)
let stsApplicationId = query['stsApplicationId']?.trim()
let currentSessionUuid
if (stsApplicationId) {
currentSessionUuid = window.sessionStorage.getItem('session_uuid')
window.sessionStorage.setItem(
'session_uuid',
currentSessionUuid + query[`stsApplicationId`]
)
} else {
window.sessionStorage.setItem('session_uuid', uuidv4())
}
window.sessionStorage.setItem('session_uuid', uuidv4())

/**
* URL rewriter that can come handy in development mode.
Expand Down

0 comments on commit 3462779

Please sign in to comment.