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

Changed the initial comic format load to a request/response [#642] #664

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

mcpierce
Copy link
Contributor

This cuts the overhead of the formats being broadcast to every user.

Status

READY

Does this PR contain migrations?

NO

Before You Submit Your PR:

  • Have you announced your PR on the comixed-dev mailing list?
  • New feature (non-breaking change which adds functionality)
  • 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 20, 2021
@mcpierce mcpierce added this to the 0.9 milestone Mar 20, 2021
@@ -35,20 +39,19 @@
@RestController
@Log4j2
public class ComicFormatController {
private static final String LOAD_COMIC_FORMATS = "load.comic-formats";
private static final String ADD_COMIC_FORMAT_QUEUE = "/queue/comic-format.add";

@Autowired private ComicFormatService comicFormatService;
@Autowired private SimpMessagingTemplate messagingTemplate;

/** Retrieves the list of all comic formats and publishes them. */
@MessageMapping(LOAD_COMIC_FORMATS)
Copy link
Contributor

@BRUCELLA2 BRUCELLA2 Mar 21, 2021

Choose a reason for hiding this comment

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

Need to add the LOAD_COMIC_FORMATS constant in Constants interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BRUCELLA2 I missed committing some local changes before pushing the PR. They're up now.

]

This cuts the overhead of the formats being broadcast to every user.
@sonarcloud
Copy link

sonarcloud bot commented Mar 21, 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

81.8% 81.8% Coverage
0.0% 0.0% Duplication

@BRUCELLA2 BRUCELLA2 merged commit e469a80 into comixed:develop Mar 22, 2021
@mcpierce mcpierce deleted the feature/issue-642 branch March 22, 2021 11:42
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