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

Be/feature/CR-28 #3314

Merged
merged 11 commits into from
May 30, 2024
Merged

Conversation

nelsonwellsredis
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@ArtemHoruzhenko ArtemHoruzhenko left a comment

Choose a reason for hiding this comment

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

looks good! thanks
Please address small comments

sessionId: DEFAULT_USER_ID,
};
},
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's get SessionMetadata from socket.data. I don't think we need extra logic here in decorator

// eslint-disable-next-line no-param-reassign
const jwt = socket.handshake.headers.authorization?.split(' ')[1];
socket.data['jwt'] = jwt || null;

Copy link
Collaborator

Choose a reason for hiding this comment

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

We must calculate (basically hardcode) SessionMetadata here and put into socket.data
For other builds we will have own Adapter with own custom logic (like validation or whatever is needed for any input) but as result of this adapter we must put SessionMetadata into socket.data field

@ArtemHoruzhenko
Copy link
Collaborator

Also seems like you've broke integration tests :)

@@ -41,6 +42,7 @@ export const getServer = async () => {
app.use(bodyParser.json({ limit: '512mb' }));
app.use(bodyParser.urlencoded({ limit: '512mb', extended: true }));
app.use('/static', express.static(serverConfig.get('dir_path').staticDir))
app.useWebSocketAdapter(new SessionMetadataAdapter(app));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@arthosofteq this is the line of code I had to add for the BE integration tests to pass

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ nelsonwellsredis
❌ arthosofteq


arthosofteq seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nelsonwellsredis nelsonwellsredis merged commit c41bf39 into feature/dynamic-dependencies May 30, 2024
9 checks passed
@nelsonwellsredis nelsonwellsredis deleted the be/feature/CR-28 branch May 30, 2024 13:19
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

3 participants