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

BC-8403 Code improvements #43

Merged
merged 69 commits into from
Dec 17, 2024
Merged

BC-8403 Code improvements #43

merged 69 commits into from
Dec 17, 2024

Conversation

CeEv
Copy link
Contributor

@CeEv CeEv commented Dec 5, 2024

Description

Links to Tickets or other pull requests

Changes

Datasecurity

Deployment

New Repos, NPM pakages or vendor scripts

Screenshots of UI changes

Approval for review

  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

CeEv and others added 24 commits December 5, 2024 17:00
import { RedisService } from '../../../infra/redis/redis.service.js';
import { StorageService } from '../../../infra/storage/storage.service.js';
import { registerYWebsocketServer } from '../../../infra/y-redis/ws.service.js';
import { RedisAdapter } from '../../../infra/redis/interfaces/redis-adapter.js';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

index.ts files für das y-redis module und redis Module wären Goldwert um die Imports übersichtlicher zu machen und aufzuzeigen was man von dort überhaupt verwenden darf. So ist es beim Review nicht möglich und man muss davon ausgehen das alles nutzbar ist.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

Choose a reason for hiding this comment

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

Wird im nächstem Ticket aufgeräumt!!!

src/infra/logger/logger.spec.ts Outdated Show resolved Hide resolved
src/infra/logger/logger.ts Show resolved Hide resolved
src/infra/redis/redis.factory.spec.ts Outdated Show resolved Hide resolved
src/infra/y-redis/interfaces/y-redis-doc.ts Show resolved Hide resolved
import { isSmallerRedisId } from './helper.js';
import { DocumentStorage } from './storage.js';
import { YRedisClient } from './y-redis.client.js';

export const running = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

src/infra/y-redis/y-redis.service.ts Outdated Show resolved Hide resolved
@@ -66,8 +68,7 @@ describe('Websocket Api Test', () => {
describe('when clients have permission for room', () => {
describe('when two clients connect to the same doc before any changes', () => {
const setup = () => {
const randomString = Math.random().toString(36).substring(7);
const room = randomString;
const room = Math.random().toString(36).substring(7);
Copy link
Contributor

Choose a reason for hiding this comment

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

Kann der obige Kommentar (evtl. gerade eingeklappt) nicht weg?

	/* 	const waitUntilDocValueMatches = (ydoc: Doc, key: string, value: number): Promise<void> =>
		promise.until(0, () => {
			const result = ydoc.getMap().get(key);
			const isMatch = result === value;
			return isMatch;
		}); */

Bzw. scheinen hier auch noch mehrere Kommentare zu sein, die eventuell weg könnten?

Copy link
Contributor

Choose a reason for hiding this comment

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

Wird im nächstem Ticket aufgeräumt!!!

import { RedisService } from '../../../infra/redis/redis.service.js';
import { StorageService } from '../../../infra/storage/storage.service.js';
import { registerYWebsocketServer } from '../../../infra/y-redis/ws.service.js';
import { RedisAdapter } from '../../../infra/redis/interfaces/redis-adapter.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@SevenWaysDP SevenWaysDP requested a review from bergatco December 16, 2024 10:31
@SevenWaysDP SevenWaysDP merged commit 75374c5 into main Dec 17, 2024
64 checks passed
@SevenWaysDP SevenWaysDP deleted the BC-8403-code-improvments branch December 17, 2024 06:24
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.

4 participants