Commit Graph
12013 Commits
Author SHA1 Message Date
John Colvin d439e3e695 Reduce task wait/timeout code in AsyncTCPConnector 2024-10-30 19:31:09 +00:00
John Colvin aae50cd5f8 Add a few canned queries to AwsProd.json for ds webapp 2024-10-30 19:31:09 +00:00
John Colvin 587e340071 fix: Copy canned queries to clipboard on click
Instead of trying to update the text directly, which causes the front end
to overwrite the user's changes everytime the data updates from then on.
2024-10-30 19:31:09 +00:00
John Colvin 156ec8f3a8 fix: Convert invalid doubles to nan in ds webapp serializer 2024-10-30 19:31:09 +00:00
John Colvin 7ca96f128b Increase datagrid maxheight in ds webapp to 1000px 2024-10-30 19:31:09 +00:00
John Colvin 9aec630100 Improve error display in ds webapp 2024-10-30 19:31:09 +00:00
John Colvin 831cf840a7 fix: Dispose existing sub on subscribe req in ds webapp
Even if new sub has parse error. This fixes a bug where the previous
subscription would continue firing and updating the frontend, when it
should just display the error info to the user and cease updates.
2024-10-30 19:31:09 +00:00
John Colvin 8940325cfd fix: Get rid of "UseSpa" calls in webapp Production environment
This was leftover from a misguided attempt to fix a bug that turned out
to be due to an omitted environment var:
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=Microsoft.AspNetCore.SpaProxy
2024-10-30 19:31:09 +00:00
John Colvin 5b77e4a36d Tweak DataGrid style in DataStream WebApp 2024-10-30 19:31:09 +00:00
John Colvin 13668374b7 Add AwsProd config for DataStream WebApp 2024-10-30 19:31:09 +00:00
John Colvin 405c6889c4 fix: Add VITE_ prefix to imported env vars
For the DataStream WebApp client
2024-10-30 19:31:09 +00:00
John Colvin b2a15cc33b Fix urls for DataStreamPublisher AwsProd.json 2024-10-30 19:31:09 +00:00
John Colvin e31d1ad69b Add benzinga news streams to AwsProd.json
This is a config profile for DataStreamPublisher, designed to be deployed
to aws (on public internet).
2024-10-30 19:31:09 +00:00
John Colvin c88d1b26f0 fix build warnings: Make props nullable strings in SharedStreamConfig 2024-10-30 19:31:09 +00:00
John Colvin b1446993b4 whitespace: Format PubSubServer.json (indentation issues) 2024-10-30 19:31:09 +00:00
John Colvin 3f1ad91beb fix: Import websocket url from environment var 2024-10-30 19:31:09 +00:00
John Colvin 639d17a625 Add scripts to deploy data stream apps 2024-10-30 19:31:09 +00:00
John Colvin 072b8b2b02 Add SpaServer to Production environment
For Bts.DataStreamWebApp.Server
2024-10-30 19:31:09 +00:00
John Colvin 658ffcad27 Change DirectoryBrowser requestPath to "/browse"
So we can view a psuedo file explorer for the webapp by requesting the "/browse" path
(only activated in Development environment).
2024-10-30 19:31:09 +00:00
John Colvin d721bba4db cleanup: Remove unused code in Bts.DataStreamWebApp.Client 2024-10-30 19:31:08 +00:00
John Colvin c387eb81c9 Capture OperationCanceledException (instead of TaskCanceledException)
The former is the base class for the latter, so this will widen the umbrella to catch a few corner cases
that would otherwise been handled by the generic "Exception" catch block. One corner case I know
of is when an op is canceled via "CancellationToken.ThrowIfCancellationRequested". In that case,
an OperationCanceledException is thrown (not a TaskCanceledException).

https://stackoverflow.com/questions/34359129/operationcanceledexception-vs-taskcanceledexception-when-task-is-canceled
2024-10-30 19:31:08 +00:00
John Colvin 707ebcfbc4 Hardcode webSocketUrl to aws server in DataStreamWebApp client 2024-10-30 19:31:08 +00:00
John Colvin 1f4f3b032e Assert that System publishers 'doWork' is always called on same thread 2024-10-30 19:31:08 +00:00
John Colvin f6e54254a9 fix: Make InternalPublisherQueue thread safe 2024-10-30 19:31:08 +00:00
John Colvin b5adcb1a84 Improve error reporting in DataStreamWebSocketServer 2024-10-30 19:31:08 +00:00
John Colvin 179b034bc7 data stream web app client check pt 2024-10-30 19:31:08 +00:00
John Colvin 2cf8a3963d fix build: Fix Spark build after making config init async 2024-10-30 19:31:08 +00:00
John Colvin 49e4e05a3c refactor: Tweak SparkCoreServices to synchronize Configuration.init globally 2024-10-30 19:31:08 +00:00
John Colvin ae9311a2a7 refactor: Change Configuration.initialize to be async 2024-10-30 19:31:08 +00:00
John Colvin 9352f529de SparkApiService check pt 2024-10-30 19:31:08 +00:00
John Colvin 0b76ac4763 datastreamwebapp server checkpt 2024-10-30 19:31:08 +00:00
John Colvin b887801cf5 datastream webapp client check pt 2024-10-30 19:31:08 +00:00
John Colvin c8ffa1489e Remove unused PubSubConfig props 2024-10-30 19:31:08 +00:00
John Colvin f72ea96d20 Fix dsqa config json 2024-10-30 19:31:08 +00:00
John Colvin 7025ffbc4d fix: Always call 'handle_internal_pubs' in PubSubMessageReactor main loop 2024-10-30 19:31:08 +00:00
John Colvin bf989e1f70 improvement: Accept CancellationToken, catch exceptions when running ds websocket server 2024-10-30 19:31:08 +00:00
John Colvin 933db6ea96 Fix mismatched types in PubSubServerTagStatsStream schema 2024-10-30 19:31:08 +00:00
John Colvin 0e92e7f30c Add DataStreamPublisher service modules designed for Dependency Injection
* Change DataStreamPublisher json fields to match cs class property names verbatim
* Rename Publishers -> PublisherNodes in DataStreamPublisherConfig
2024-10-30 19:31:08 +00:00
John Colvin 25c42e388f refactor: Decouple ViewPublisher from IPubTableBroker impl 2024-10-30 19:31:08 +00:00
John Colvin 3187722159 Add PubSub service modules designed for Dependency Injection
* Get rid of JsonPropertyName attributes in PubSubConfig
  - The Dependency Injection framework (based around dotnet ApplicationBuilder)
    does not support this attribute, and maps property names verbatim to json fields.

* Change PubSubServer json fields to match cs class property names verbatim
2024-10-30 19:31:08 +00:00
John Colvin 352cb97818 refactor: Decouple RemoteQueryManager from IManagedSubscriber, IPubTableBroker impl 2024-10-30 19:30:30 +00:00
John Colvin 0215b7990e refactor: Decouple ManagedSubscriber from ISubscriberCore impl 2024-10-30 19:30:30 +00:00
John Colvin 1644b5b58b refactor: Only support 1 tag type in IPubSubServerTagHandler 2024-10-30 19:30:30 +00:00
John Colvin b2ea6820d7 refactor: Decouple PubTableBroker from IPublisherCore impl
Reference interface rather than the PublisherCore impl.
2024-10-30 19:30:30 +00:00
John Colvin 5c9fc5ccc2 improvement: Accept CancellationToken in JsonRpcRequestObservable 2024-10-30 19:30:30 +00:00
John Colvin 4bd6f149b9 fix: Dispose market data sub in various md streams 2024-10-30 19:30:30 +00:00
John Colvin 293f7f3833 cleanup: Remove unused pubsub tag handler code
* Removed 'IPubSubServerTagHandler.register'
  - All implementations of this function were empty
* Removed 'IPubSubServerTagHandler.supportedTagTypes'
  - This property wasn't referenced anywhere
* Remove IWorker inheritance from IPubSubServerTagHandler
  - No reason these interfaces have to be tied together
2024-10-30 19:30:30 +00:00
John Colvin ad2f9a8624 refactor: Rename CloudStreamManager.cs -> RemoteQueryManager.cs
This matches the file name
2024-10-30 19:30:30 +00:00
John Colvin 99922725e1 Change pub sub schema prefix 'bluto://' -> 'bts-cloud://'
In config json files (not actual code change)
2024-10-30 19:30:30 +00:00
John Colvin 60c3cc0015 fix build: Fix prop names after refactoring PubSubRoute
* Change 'server_address' -> 'ServerAddress'
* Change 'tag_reg_exp' -> 'TagRegExp'
2024-10-30 19:30:30 +00:00