-
Notifications
You must be signed in to change notification settings - Fork 1
2.0 Refactor #5
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
Merged
Merged
2.0 Refactor #5
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
7c7b6d3
Merge tag 'v1.0.0' into develop
jasonmccallister 2a76b18
Use sessionhandler
timkelty ef10963
Multi-tenant
timkelty 2980e48
Connection class
timkelty c11bf77
Connection/session
timkelty fff1fa5
Cache
timkelty 52048e2
stub
timkelty 0f976bc
hint
timkelty 529277d
compound keys
timkelty a739921
Scalar hint
timkelty 838f12c
Format key
timkelty c263ae2
Fix delete
timkelty 87ec137
Queue
timkelty 0fbb12f
pk default
timkelty 31717fc
table test
timkelty 4403ae6
Tests
timkelty cdaf080
php 8
timkelty 9362d69
Fix test
timkelty 605d6b4
Add types
timkelty 1c9daa1
add Scan delte
timkelty 98cdbc6
Fix session tests
timkelty 5e25f46
Configure env for tests
timkelty ecb386e
Improve methods
timkelty 373ed60
Refactor flush
timkelty ec16f25
Tests
timkelty df2b16e
Config queue
timkelty d9c6a80
Test
timkelty 2c69b00
Queue test
timkelty e61fc5b
Simple queue
timkelty 4904fbd
ttl for sessions from ini
timkelty c90b19d
timeout set on session
timkelty cfb72da
Comments
timkelty 4a2e07f
GC, timeout for sessions
timkelty aa3ad30
Default table names
timkelty 2d4d233
Catch session/cache
timkelty 30c0f5f
Wrap in try/catch
timkelty 5180324
Add types, phpdoc
timkelty 905e2cb
Fix ttl
timkelty 62f8b5f
Add throws
timkelty 67449d3
Better key
timkelty 16e2c15
Put item tests
timkelty dc1f9e8
Have putItem actually putItem
timkelty 56908c1
Uppercase special attributes, require tableName
timkelty 2dc8b1d
Whoopsie
timkelty aaad38e
ECS changes
timkelty 4264ecb
PHPStan + ECS
timkelty a2c1c53
CI
timkelty 4f460d7
Fix ci
timkelty 86dd5af
🇺🇦
timkelty 67181eb
bypass bower-asset
timkelty 737c659
Update namespace
timkelty 1a4a10a
Readme
timkelty eaa9839
Merge pull request #6 from pixelandtonic/craftcms-release
jasonmccallister 86112f7
Changelog, linting
timkelty fc2dfb4
npm
timkelty 48744c9
Prettier
timkelty dc44634
Husky
timkelty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: ci | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
jobs: | ||
ecs: | ||
name: ECS | ||
uses: craftcms/.github/.github/workflows/ecs.yml@v1 | ||
with: | ||
php_version: '8.0' | ||
phpstan: | ||
name: PHPStan | ||
uses: craftcms/.github/.github/workflows/phpstan.yml@v1 | ||
with: | ||
php_version: '8.0' | ||
phpunit: | ||
runs-on: ubuntu-latest | ||
name: PHPUnit | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Validate composer.json | ||
run: composer validate | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-composer-${{ hashFiles('composer.json') }} | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Setup DynamoDB | ||
run: docker-compose up -d dynamodb | ||
|
||
- name: Create DynamoDB tables | ||
run: make tables | ||
env: | ||
AWS_REGION: local | ||
AWS_ACCESS_KEY_ID: local | ||
AWS_SECRET_ACCESS_KEY: local | ||
|
||
- name: Run test suite | ||
run: composer run-script test | ||
|
||
notify-slack: | ||
name: Notify Slack | ||
needs: [ecs, phpstan, phpunit] | ||
if: ${{ always() }} | ||
uses: craftcms/.github/.github/workflows/notify-slack.yml@v1 | ||
with: | ||
success: ${{ needs.ecs.result == 'success' && needs.phpstan.result == 'success' && needs.phpunit.result == 'success' }} | ||
failure_text_prefix: <!subteam^SGFL9NKNZ> | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
slack_webhook_url: ${{ secrets.SLACK_CRAFT_WEBHOOK_URL }} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# Add to path for GUIs (Tower, etc.) | ||
PATH="/usr/local/bin:$PATH" | ||
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh | ||
|
||
npx lint-staged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"**/*.php": [ | ||
"./vendor/bin/ecs check --ansi --fix", | ||
"./vendor/bin/phpstan analyse" | ||
], | ||
"*": "prettier --ignore-unknown --write" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
composer.lock | ||
vendor/* | ||
build/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"vueIndentScriptAndStyle": true | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.