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

Migrate to b7a 1.0.3 and introduce basic auth for the hub service #70

Merged
merged 9 commits into from
Nov 7, 2019

Conversation

MaryamZi
Copy link
Collaborator

@MaryamZi MaryamZi commented Nov 2, 2019

$title.

To Do - persist registered callbacks vs username. - Done

@MaryamZi MaryamZi changed the title Migrate to b7a 1.0.3 Migrate to b7a 1.0.3 and introduce basic auth for the hub service Nov 4, 2019
log:printWarn("error decoding topic, using the original form: " + topic + ". Error: " + decodedTopic.toString());
}

if (topic != JSON_RESULTS_TOPIC) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to support image sending too .. so user has to subscribe to both the JSON and the image.

See: #48

Copy link
Contributor

Choose a reason for hiding this comment

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

We can fix this after merging this code.

if (remResult is error) {
log:printError("error removing existing subscription for username: " + username, remResult);
}
updateUserCallback(username, callback);
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a log showing that we added a new subscription and show the callback URL


if callbackMap.hasKey(username) {
error? remResult = hubVar.removeSubscription(topic, callbackMap.get(username));
log:printInfo("Removing existing subscription for username: " + username);
Copy link
Contributor

Choose a reason for hiding this comment

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

Show the callback URL

@sanjiva sanjiva merged commit f43acd8 into ECLK:master Nov 7, 2019
MaryamZi added a commit to MaryamZi/Results-Dist that referenced this pull request Nov 8, 2019
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.

3 participants