Skip to content

Periodic request to /location?company_id #146

@christocracy

Description

@christocracy

Testing bg-console-staging, I notice every few seconds the map gets cleared.

Observing the network tab, there's a request to /locations with an html response -- that should be JSON.

<div class="locations-scroll">
	<table class="locations-table">
		<thead>
			<tr>
				<th>UUID</th>
				<th>Recorded</th>
				<th>Coordinate</th>
				<th>Accuracy</th>
				<th>Speed</th>
				<th>Event</th>
				<th>Moving</th>
				<th>Activity</th>
				<th>Battery</th>
			</tr>
		</thead>
		<tbody>
		
			<tr>
				<td colspan="9" class="empty-row">No locations recorded for this selection yet.</td>
			</tr>
		
		</tbody>
	</table>
	<div hx-swap-oob="outerHTML:#location-stats">
		
<div class="panel-heading" id="location-stats">
	<p>0 recent locations · updates every 10s</p>
</div>

	</div>
	<script type="application/json" id="map-data" hx-swap-oob="outerHTML:#map-data">[]</script>
</div>

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions