Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[Archive] Jaclang-jaseci V1.0.2 #22

Draft
wants to merge 67 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
5912c20
[PLUGIN]: Initial FastAPI Integration
amadolid Mar 6, 2024
ca61212
[MYPY]: 54/220 warnings addressed
amadolid Mar 6, 2024
463006d
[MYPY]: all warnings addressed
amadolid Mar 7, 2024
5324dc7
[UNIT-TEST]: Add Common Test including crud operations
amadolid Mar 8, 2024
da190c3
[MYPY]: motor-types alignments
amadolid Mar 8, 2024
39aa679
[MINOR]: Chang return type of User.model function
amadolid Mar 8, 2024
6b76b5d
[MINOR]: Support all optional params on all database operations
amadolid Mar 8, 2024
334777e
[MINOR]: Implement generic type for basecollection
amadolid Mar 10, 2024
49a0d37
[MINOR]: Improvements
amadolid Mar 11, 2024
8dfde2e
[SECURITY]: Integrate access validation with level
amadolid Mar 13, 2024
00d4385
[FEATURE]: Emailer
amadolid Mar 18, 2024
c5599ce
[DOCUMENTATIONS]: Added README.md
amadolid Mar 25, 2024
95208fb
[MINOR]: Cleanup some codes
amadolid Mar 26, 2024
58cab33
[CLEANUP]: Remove bcrypt dependencies
amadolid Apr 2, 2024
ba9346b
[MULTIPART-FORM-DATA]: Proper support for json body with files
amadolid Apr 2, 2024
6139fc6
[MINOR]: Cleanup some mypy warnings and bugfix on user parser
amadolid Apr 19, 2024
1973bfc
[SAVING]: Auto and Manual saving flow
amadolid Apr 22, 2024
59c1ac1
[COLLECTION]: Unit test
amadolid Apr 24, 2024
6d654b1
[MEMORY]: Unit Test
amadolid Apr 25, 2024
376ce9a
[MODEL]: Unit Test
amadolid Apr 25, 2024
3ec071b
[CORE]: Address some PR comments
amadolid Apr 26, 2024
906e98d
[INDEXING]: Support custom indexing
amadolid Apr 26, 2024
e1e6e09
[JAC-CONTEXT]: factory approach
amadolid May 3, 2024
3ba5d0f
[REVERTIBLE]: Sync Patch
amadolid May 3, 2024
9f59d9a
[BUGFIX]: password missing issue on find by id
amadolid May 20, 2024
a82810d
[ENHANCEMENTS]: Sync walker spawn call; Unit tests added
amadolid May 20, 2024
877e46e
[AUTO-ENDPOINT-CONTROL]: Allow control for auto endpoint generation
amadolid May 22, 2024
d5e24a4
Pin jaclang version
ypkang May 28, 2024
c364298
Remove returns from API response
ypkang Jun 17, 2024
45c25da
[AUTO-SAVE]: Prioritize memory as datasource
amadolid Jun 17, 2024
c9fed4d
Set default of SHOW_ENDPOINT_RETURNS as False
ypkang Jun 17, 2024
af20ce2
[SSO]: Initial Integration
amadolid Jun 24, 2024
4ebd607
[MINOR]: Adjust some sso flow
amadolid Jun 24, 2024
eb11d0d
sync disconnect
ypkang Jun 27, 2024
bb09705
[BUGFIX]: Align disconnect; Realign edge access validation
amadolid Jun 28, 2024
aa474b4
[UNIT-TEST]: Added destroy unit test
amadolid Jun 28, 2024
1c1ad7c
[BUGFIX]: cast access.all to int instead of bool
amadolid Jul 12, 2024
c8eed8d
[PASSWORD]: Change / Reset password support
amadolid Jul 22, 2024
88d3400
Tweak on register logic to accept is_activated in the request payload
ypkang Jul 22, 2024
7801753
Add initial elastic integration
ypkang Jul 23, 2024
5ac9647
Troubleshoot elastic
ypkang Jul 23, 2024
2731b31
[SSO]: Initial Apple SSO
amadolid Jul 24, 2024
00235d6
Remove debug prints for elastic
ypkang Jul 24, 2024
1b5dae7
handle the case where there is no payload
ypkang Jul 24, 2024
6814d6d
[SSO]: Support Apple SSO id_token to support mobile integration
amadolid Jul 25, 2024
937c478
Add permission control methods for edgearchitype
ypkang Jul 26, 2024
3f3ea53
Merge pull request #20 from Jaseci-Labs/add_permission_functions_for_…
ypkang Jul 26, 2024
5d15859
[IS-ALLOWED]: Include current root access
amadolid Jul 30, 2024
cacc55b
fix fstring error
ypkang Jul 31, 2024
0856f9a
[SESSION]: Support commit retry
amadolid Jul 26, 2024
9fedc87
[SSO]: Support mobile google sso
amadolid Jul 30, 2024
daa8372
[SSO]: Change default email
amadolid Jul 31, 2024
dfa7771
[BUGFIX]: Optional client_secret error
amadolid Jul 31, 2024
dd0a683
[SSO]: Support auto attach sso when email is already existing
amadolid Jul 31, 2024
af784b7
[APPLE-SSO]: Support client secrete auto generation
amadolid Aug 1, 2024
b94f214
[SSO]: Minor adjustments for security
amadolid Aug 1, 2024
5f474fb
[MINOR]: Adjust google & apple open_id parser
amadolid Aug 2, 2024
862178c
Merge branch 'main' into jaseci/v1.0.2
ypkang Aug 5, 2024
d2fa715
Tweak release.yaml
ypkang Aug 5, 2024
9d72730
Remove toml for now
ypkang Aug 7, 2024
a12588e
Update release.yaml to use twine for now
ypkang Aug 7, 2024
a6949f3
Debugging sed
ypkang Aug 7, 2024
d71a08c
update
ypkang Aug 7, 2024
b87e050
Relax version for orjson
ypkang Aug 8, 2024
09c63b8
Add requests
ypkang Aug 20, 2024
9c3ea10
Fix linting and typing. Add requests to dependecies
ypkang Aug 20, 2024
07a7068
Support backward compatible password hashing
ypkang Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 11 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,27 @@ jobs:
with:
python-version: '3.12' # Specify your Python version

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
export PATH="$HOME/.poetry/bin:$PATH"

- name: Install dependencies
run: poetry install
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine

- name: Extract version from tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

- name: Update version in pyproject.toml
- name: Update version in setup.py
run: |
poetry version ${{ steps.get_version.outputs.VERSION }}
sed -i 's/VERSION = ".*"/VERSION = "${{ steps.get_version.outputs.VERSION }}"/' setup.py

- name: Build package
run: poetry build

- name: Configure credentials with Pypi
run: |
poetry config repositories.pypi https://pypi.org/legacy/
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
run: python setup.py sdist bdist_wheel

- name: Publish package to PyPI
run: poetry publish -r pypi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*

- name: Create GitHub Release
uses: actions/create-release@v1
Expand All @@ -54,4 +49,4 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
prerelease: false
49 changes: 49 additions & 0 deletions .github/workflows/run_plugin_pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Run Plugin Tests

on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
SHOW_ENDPOINT_RETURNS: true
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-replica-set: test-rs

- name: Check out code
uses: actions/checkout@v2

- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12.2

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .

- name: Run tests
run: |
jac run jaclang_jaseci/tests/fixtures/simple_walkerapi.jac &
jac run jaclang_jaseci/tests/fixtures/simple_walkerapi_manual.jac &
sleep 1
pytest

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-redis, motor-types]
additional_dependencies: [types-redis, motor-types, types-requests]
exclude: 'venv|__jac_gen__|tests|setup.py'
args:
- --follow-imports=silent
Expand Down
Loading
Loading