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

Add Redis Storage Add On #16

Merged
merged 9 commits into from
Apr 30, 2024
Merged

Add Redis Storage Add On #16

merged 9 commits into from
Apr 30, 2024

Conversation

tichon29
Copy link
Collaborator

@tichon29 tichon29 commented Mar 8, 2024

No description provided.

Copy link
Collaborator

@cadgerfeast cadgerfeast left a comment

Choose a reason for hiding this comment

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

Went for a first pass on review.
Pretty much only found nits or code golf improvements.

I would say the major comment would be around module name and usage.

docs/src/guide/customization/addons/redisStorage.md Outdated Show resolved Hide resolved
docs/src/guide/customization/addons/redisStorage.md Outdated Show resolved Hide resolved
docs/src/guide/customization/addons/redisStorage.md Outdated Show resolved Hide resolved
docs/src/guide/customization/addons/redisStorage.md Outdated Show resolved Hide resolved
docs/src/guide/customization/addons/redisStorage.md Outdated Show resolved Hide resolved
packages/@mollitia/redis-storage/vite.config.ts Outdated Show resolved Hide resolved
packages/mollitia/src/module/breaker/index.ts Outdated Show resolved Hide resolved
packages/mollitia/src/module/breaker/index.ts Outdated Show resolved Hide resolved
packages/@mollitia/redis/README.md Outdated Show resolved Hide resolved
packages/@mollitia/prometheus/vite.config.ts Outdated Show resolved Hide resolved
packages/@mollitia/redis/src/redis.ts Show resolved Hide resolved
packages/@mollitia/redis/vite.config.ts Outdated Show resolved Hide resolved
packages/mollitia/src/module/breaker/index.ts Outdated Show resolved Hide resolved
packages/mollitia/src/module/breaker/index.ts Outdated Show resolved Hide resolved
packages/mollitia/src/module/breaker/index.ts Outdated Show resolved Hide resolved
- name: Install net tools
run: |
sudo apt-get update
#sudo apt-get install -y redis-tools redis-server
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess we can remove this one if not used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adjusted as I want to be able to test both options (redis install via aptget and redis install via gha)

Comment on lines 11 to 12
npm install redis --save
npm install @mollitia/redis --save
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's ok to do that inline: npm install @mollitia/redis redis --save

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed, updated

await success(circuit2, { data: 'Circuit2', delay: 150 });
check(slidingTimeBreaker2.state === Mollitia.BreakerState.OPENED, 'Ok, circuit is opened', 'Circuit is not opened as expected...');
await delay(10);
await expect(circuit.fn(successAsync).execute('dummy')).resolves.toEqual('dummy');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are those expects coming from vitest?
It doesn't look like it's a vitest test file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, forgot to replace these ones.
Fixed

@tichon29 tichon29 merged commit 9497a85 into main Apr 30, 2024
1 check passed
@tichon29 tichon29 deleted the redis-storage-add-on branch April 30, 2024 12:58
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.

2 participants