Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Nov 23, 2021
2 parents 8d6a283 + 0373c4b commit 52fa032
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 22 deletions.
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version: "3.5"

services:
cosmos-minio:
image: "minio/minio:RELEASE.2021-10-27T16-29-42Z"
image: "minio/minio:RELEASE.2021-06-17T00-10-46Z"
volumes:
- "cosmos-minio-v:/data"
command: ["server", "/data"]
Expand Down
9 changes: 6 additions & 3 deletions cosmos-cmd-tlm-api/app/channels/limits_events_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def subscribed
end

def unsubscribed
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
if @broadcasters[uuid]
stop_stream_from uuid
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
end
end
end
9 changes: 6 additions & 3 deletions cosmos-cmd-tlm-api/app/channels/messages_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def subscribed
end

def unsubscribed
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
if @broadcasters[uuid]
stop_stream_from uuid
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
end
end
end
9 changes: 6 additions & 3 deletions cosmos-cmd-tlm-api/app/channels/notifications_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def subscribed
end

def unsubscribed
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
if @broadcasters[uuid]
stop_stream_from uuid
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
end
end
end
2 changes: 1 addition & 1 deletion cosmos-cmd-tlm-api/app/channels/streaming_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def unsubscribed
stop_stream_from uuid
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
end
@broadcasters.delete(uuid)
end

# data holds the following keys:
Expand Down
9 changes: 6 additions & 3 deletions cosmos-cmd-tlm-api/app/channels/timeline_events_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def subscribed
end

def unsubscribed
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
if @broadcasters[uuid]
stop_stream_from uuid
@broadcasters[uuid].kill
@broadcasters[uuid] = nil
@broadcasters.delete(uuid)
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
return {
localDate: new Date(),
displayLocal: localStorage.clock_zone === 'local',
display24h: !localStorage.clozk_12h,
display24h: !localStorage.clock_12h,
dateMode: localStorage.clock_dateMode || 'monthFirst',
intervalCount: 0,
showMenu: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ export default {
if (val.length === 1 || (!this.scope && val.length)) this.scope = val[0]
},
},
created: function () {
if (localStorage.scope == null) {
localStorage.scope = 'DEFAULT'
}
},
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ IGNORE_ITEM CCSDSSEQFLAGS
IGNORE_ITEM CCSDSSEQCNT
IGNORE_ITEM CCSDSLENGTH

IGNORE_ITEM RECEIVED_COUNT
IGNORE_ITEM RECEIVED_TIMESECONDS
IGNORE_ITEM RECEIVED_TIMEFORMATTED

# Explicitly define command and telemetry files
# If not given then all the files in cmd/tlm will be processed in
# alphabetical order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export default {
valueTypes: ['CONVERTED', 'RAW'],
active: true,
expand: true,
fullWidth: true,
fullWidth: false,
fullHeight: true,
graph: null,
editGraph: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@
<span class="font-weight-black"> {{ item }} </span>
<v-spacer />
<v-btn
@click="restoreItem(item, index)"
small
icon
@click="restoreItem(item, index)"
data-test="delete-ignored-item"
:data-test="`remove-ignore-${index}`"
>
<v-icon> mdi-delete </v-icon>
</v-btn>
Expand Down
4 changes: 4 additions & 0 deletions cypress/cypress/integration/tools/TlmGrapher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ describe('TlmGrapher', () => {

it('shrinks and expands a graph width', () => {
aliasWidthHeight()
cy.get('#gridItem0').within(() => {
cy.get('[data-test=expandWidth]').click({ force: true })
})
checkWidthHeight('eq', 1, 'eq', 1)
cy.get('#gridItem0').within(() => {
cy.contains('Graph 0')
cy.get('[data-test=collapseWidth]').click({ force: true })
Expand Down

0 comments on commit 52fa032

Please sign in to comment.