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 RedisAPL #287

Closed
wants to merge 7 commits into from
Closed

add RedisAPL #287

wants to merge 7 commits into from

Conversation

djkato
Copy link

@djkato djkato commented Sep 30, 2023

Will fail tests on PRs / Github actions, as it requires a local redis server obviously. But they pass when I test them :)

Finally an alternative to SaaS or only dev suggested solutions
@djkato djkato requested a review from a team as a code owner September 30, 2023 18:23
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2023

🦋 Changeset detected

Latest commit: dbc692e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Sep 30, 2023

CLA assistant check
All committers have signed the CLA.

@djkato
Copy link
Author

djkato commented Sep 30, 2023

This PR relies on the APP ID to be passed through the constructor.
When trying to implement this for an actual app - specifically mails and messages, I noticed that I've no clue where to get the appID from. Is it even obtainable?

@lkostrowski lkostrowski linked an issue Oct 2, 2023 that may be closed by this pull request
- `src/APL/redis-apl.test.ts`: Tests for Redis APL

### Changed
- npm run lint changed a lot of files, guess it wasn't ran in a while :)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for a notice, but its not a changelog message and I don't see any linter changes committed, so we can remove this message

import { RedisAPL } from "./redis-apl";

// Obviously, for this test to pass you need to have a docker container running redis :)
const localRedisServerUrl = new URL("redis://127.0.0.1:6379/1");
Copy link
Member

Choose a reason for hiding this comment

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

Redis address should come from ENV (.env.test can be introduced)

import { AuthData } from "./apl";
import { RedisAPL } from "./redis-apl";

// Obviously, for this test to pass you need to have a docker container running redis :)
Copy link
Member

Choose a reason for hiding this comment

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

In units tests we will not have Redis available so you need to mock it, otherwise your PR will kill CICD until we rework infrastructure

import { APL, AplConfiguredResult, AplReadyResult, AuthData } from "./apl";
import { createAPLDebug } from "./apl-debug";

const debug = createAPLDebug("UpstashAPL");
Copy link
Member

Choose a reason for hiding this comment

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

RedisAPL

@lkostrowski
Copy link
Member

stale, closing

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.

Redis APL provided by app-sdk
4 participants