Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: support relativePosition.radius in subscriptions #345

Closed
wants to merge 22 commits into from

Conversation

sbender9
Copy link
Member

No description provided.

package.json Outdated
@@ -111,7 +111,8 @@
"stream-throttle": "^0.1.3",
"through": ">=2.2.7 <3",
"ws": "^3.0.0",
"xml2js": "^0.4.17"
"xml2js": "^0.4.17",
"geolib": "^2.0.24"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In alphabetical order, please.

@tkurki
Copy link
Member

tkurki commented Nov 25, 2017

There should be a test to go with this, easy enough to add since there are subscription tests already in place.

@tkurki
Copy link
Member

tkurki commented Nov 25, 2017

I'd like to change to using lodash in all new code instead of typeof...., the code is much more readable and concise. Probably should change all existing code as well, but minimum would be all new stuff / stuff we touch. For existing code preferably in separate commits.

@sbender9
Copy link
Member Author

I'll add a test after you merge #343 and #339

@tkurki
Copy link
Member

tkurki commented Dec 31, 2017

Ready to continue?

sbender9 and others added 19 commits February 6, 2018 09:38
Tweak the formatting regexps to include everything
under lib.

Reformat
Change SSL configuration so that if settings.ssl is
set the server listens on sslport for ssl connections only
and http port requests are redirected to the root of
the ssl service.
Configure Express where it is constructed.
If the server is to be restarted we can not use just one
DevNull, as that gets ended with first server stop() and
future writes fail with write after end.
So that you don't mistake it for some demo settings.
This commit concentrates configuration handling code to
config.js and breaks unrelated functionalities to separate
functions. Express configuration is in the main server file,
where Express is constructed. Settings handling is changed
so that you can pass a configuration object to Server constructor,
easing test setups. The server can now be stopped and started
programmatically, paving way for restarting the server without
restarting the process.
SubscriptionManager handles deltas' values independently: the
values are pushed to Bacon buses, bus per path, by StreamBundle.
When the bus's subscriptions fire SM reconstructs outgoing delta
from the incoming pathvalues. Previously StreamBundle normalized
pathvalues of naked properties, where path is empty, to synthesized
pathvalues with 'normal' paths and matching values. The generated
outgoing delta was then not naked, as it was generated from the
synthesized pathvalues.
This commit changes the handling so that the original, incoming
normalised pathvalue is pushed to buses for paths generated from
the object value's structure. Since we are pushing the normalised
pathvalues from the original delta the output pathvalues match
the incoming data.
@sbender9 sbender9 force-pushed the relativePosition-radius branch from f605980 to f57160e Compare February 6, 2018 14:41
@sbender9
Copy link
Member Author

sbender9 commented Feb 7, 2018

Closing for new #446

@sbender9 sbender9 closed this Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants