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

Added STOMP messaging between the front and backends [#615] #641

Merged
merged 1 commit into from Mar 12, 2021

Conversation

mcpierce
Copy link
Contributor

@mcpierce mcpierce commented Mar 9, 2021

  • Added the frontend messaging feature.
  • Added a queue for monitoring the number of active tasks.
  • Added a new feature to track server status.

Status

READY

Does this PR contain migrations?

NO

Before You Submit Your PR:

  • Have you announced your PR on the comixed-dev mailing list?
  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@mcpierce mcpierce added the enhancement A pull request containing a a new feature, refactoring, or security improvement.. label Mar 9, 2021
@mcpierce mcpierce added this to the 0.9 milestone Mar 9, 2021
@mcpierce mcpierce force-pushed the feature/issue-615 branch 2 times, most recently from 04701a3 to d41136c Compare March 11, 2021 01:19
Copy link
Contributor

@BRUCELLA2 BRUCELLA2 left a comment

Choose a reason for hiding this comment

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

Some comments and questions

*/
startSubscriptions(): void {
this.logger.debug('Starting session services');
this.taskCountService.start();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does sessionService.startSubscriptions call taskCountService.start? Is this some kind of test to see if it works well? If not, what is the purpose of this task counter normally used for import count service? ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The goal there is to divide up all of the various parts of the session that will use the messaging bus. Rather than having SessionService have some huge, monolithic method that subscribes to task counts, comic changes, reading list changes, etc., we'll code up each type of subscription as a separate service type (like TaskCountService) that can be started and stopped by SessionService.

That will also make it easier to test them since, like TaskCountService, they are isolated and testable by themselves.

@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses>
*/

import { createFeatureSelector } from '@ngrx/store';
import { createFeatureSelector, createSelector } from '@ngrx/store';
Copy link
Contributor

Choose a reason for hiding this comment

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

createSelector is never used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed it now.

 * Added the frontend messaging feature.
 * Added a queue for monitoring the number of active tasks.
 * Added a new feature to track server status.
@sonarcloud
Copy link

sonarcloud bot commented Mar 11, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.8% 87.8% Coverage
0.0% 0.0% Duplication

@mcpierce mcpierce merged commit 5476464 into comixed:develop Mar 12, 2021
@mcpierce mcpierce deleted the feature/issue-615 branch March 12, 2021 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A pull request containing a a new feature, refactoring, or security improvement..
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants