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

Remove unnecessary Marshal & Unmarshal operations from the code #93

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ivanruski
Copy link
Contributor

@ivanruski ivanruski commented Apr 27, 2023

Description

Remove unnecessary operations which have no real value on the correctness of the program.

Scope and particulars of this PR (Please tick all that apply)

  • Tech hygiene (dependency updating & other tech debt)
  • Bug fix
  • Feature
  • Documentation
  • Breaking change
  • Minor change (e.g. fixing a typo, adding config)

DoD - Ensure all relevant tasks are completed before marking this PR as "Ready for review"

  • Test coverage is not significantly decreased
  • All PR checks have passed
  • Changes are deployed on dev before asking for review
  • Documentations remains up-to-date
    • OpenAPI definition file is updated
    • README file is updated
    • Documentation is updated in upp-docs and upp-public-docs
    • Architecture diagrams are updated

This Pull Request follows the rules described in our Pull Requests Guide

The sns package will be used instead of SQS to publish the concept
events returned by `concepts-rw-neo4j`. In this way more than one
service would be able to consume them.
Allow multiple consumers of concept updates by refactoring AGGY to
publish them in SNS topic instead of SQS.
The `sqs` package won't be used to SendEvents anymore. Instead AGGY will use
SNS to publish events. There is no point in keeping logic and models
which won't be used.

Also previously it was possible to create a new sqs client with empty
queueURL because in US there isn't a concepts events queue.
`n.UUID` is a shared variable in the anonymous func, instead
`update.UUID` must be logged.
@ivanruski ivanruski marked this pull request as ready for review April 27, 2023 08:16
@ivanruski ivanruski requested a review from a team as a code owner April 27, 2023 08:16
@ivanruski ivanruski force-pushed the fix/unnecessary-operations branch from 31e5b80 to f3e6bea Compare May 2, 2023 12:53
@coveralls
Copy link

coveralls commented May 2, 2023

Coverage Status

Coverage: 55.733% (+0.1%) from 55.595% when pulling f3e6bea on fix/unnecessary-operations into 972abc4 on feature/UPPSF-4343-sns.

@ivanruski ivanruski force-pushed the feature/UPPSF-4343-sns branch 2 times, most recently from d49dddf to 33f52f8 Compare May 2, 2023 14:35
Base automatically changed from feature/UPPSF-4343-sns to master May 15, 2023 07:17
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.

None yet

2 participants