Repository navigation
Feat/student profile #40
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
Open
mimionly
wants to merge
21
commits into
Developer-Kommunity-24:main
Choose a base branch
from
mimionly:feat/student-profile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1386fcc
feat: student profile management
mimionly 7f61727
fix: Student profile management authentication with gs
mimionly bcef7e6
fix: dk24 status removal from put profile status payload
mimionly a61fef2
refactor: remove mock auth endpoints and tests, align student middlew…
mimionly 4ee6b3c
revert: all frontend changes in apps/web as requested
mimionly 5530ba6
refactor: extract student profile database logic into student.control…
mimionly 90e0c16
test: prevent process.env pollution in student integration tests
mimionly 11af9d9
fix : student-profile
mimionly 8e28d10
restored
mimionly 76a3d99
Remove empty line from pre-commit hook
mimionly 61d7dd5
Merge branch 'main' into feat/student-profile
mimionly 675c884
ci: re-trigger check workflow
mimionly f113e32
fix(workspace): fix indentation and remove duplicate entries in pnpm-…
mimionly 0c309f1
revert: revert all changes in apps/web and packages/db, align UserRol…
mimionly b45a551
chore: remove unused neon_workflow.yml
mimionly fc6f1bd
revert: match apps/api/wrangler.jsonc to origin/main
mimionly e529c38
refactor: export CompletionProfileFields type
mimionly c2ce647
Merge branch 'main' into feat/student-profile
mimionly 4dd2ce5
chore: update pnpm-lock.yaml with pglite dependency
mimionly b4ef809
Merge branch 'main' into feat/student-profile
mimionly 237655b
Merge branch 'main' into feat/student-profile
mimionly 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,97 @@ | ||
| name: Create/Delete Branch for Pull Request | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| - closed | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
|
|
||
| jobs: | ||
| setup: | ||
| name: Setup | ||
| outputs: | ||
| branch: ${{ steps.branch_name.outputs.current_branch }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Get branch name | ||
| id: branch_name | ||
| uses: tj-actions/branch-names@v8 | ||
|
|
||
| create_neon_branch: | ||
| name: Create Neon Branch | ||
| outputs: | ||
| db_url: ${{ steps.create_neon_branch_encode.outputs.db_url }} | ||
| db_url_with_pooler: ${{ steps.create_neon_branch_encode.outputs.db_url_with_pooler }} | ||
| needs: setup | ||
| if: | | ||
| github.event_name == 'pull_request' && ( | ||
| github.event.action == 'synchronize' | ||
| || github.event.action == 'opened' | ||
| || github.event.action == 'reopened') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Get branch expiration date as an env variable (2 weeks from now) | ||
| id: get_expiration_date | ||
| run: echo "EXPIRES_AT=$(date -u --date '+14 days' +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_ENV" | ||
| - name: Create Neon Branch | ||
| id: create_neon_branch | ||
| uses: neondatabase/create-branch-action@v6 | ||
| with: | ||
| project_id: ${{ vars.NEON_PROJECT_ID }} | ||
| branch_name: preview/pr-${{ github.event.number }}-${{ needs.setup.outputs.branch }} | ||
| api_key: ${{ secrets.NEON_API_KEY }} | ||
| expires_at: ${{ env.EXPIRES_AT }} | ||
|
|
||
| # The step above creates a new Neon branch. | ||
| # You may want to do something with the new branch, such as run migrations, run tests | ||
| # on it, or send the connection details to a hosting platform environment. | ||
| # The branch DATABASE_URL is available to you via: | ||
| # "${{ steps.create_neon_branch.outputs.db_url_with_pooler }}". | ||
| # It's important you don't log the DATABASE_URL as output as it contains a username and | ||
| # password for your database. | ||
| # For example, you can uncomment the lines below to run a database migration command: | ||
| # - name: Run Migrations | ||
| # run: npm run db:migrate | ||
| # env: | ||
| # # to use pooled connection | ||
| # DATABASE_URL: "${{ steps.create_neon_branch.outputs.db_url_with_pooler }}" | ||
| # # OR to use unpooled connection | ||
| # # DATABASE_URL: "${{ steps.create_neon_branch.outputs.db_url }}" | ||
|
|
||
| # Following the step above, which runs database migrations, you may want to check | ||
| # for schema changes in your database. We recommend using the following action to | ||
| # post a comment to your pull request with the schema diff. For this action to work, | ||
| # you also need to give permissions to the workflow job to be able to post comments | ||
| # and read your repository contents. Add the following permissions to the workflow job: | ||
| # | ||
| # permissions: | ||
| # contents: read | ||
| # pull-requests: write | ||
| # | ||
| # You can also check out https://github.com/neondatabase/schema-diff-action for more | ||
| # information on how to use the schema diff action. | ||
| # You can uncomment the lines below to enable the schema diff action. | ||
| # - name: Post Schema Diff Comment to PR | ||
| # uses: neondatabase/schema-diff-action@v1 | ||
| # with: | ||
| # project_id: ${{ vars.NEON_PROJECT_ID }} | ||
| # compare_branch: preview/pr-${{ github.event.number }}-${{ needs.setup.outputs.branch }} | ||
| # api_key: ${{ secrets.NEON_API_KEY }} | ||
|
|
||
| delete_neon_branch: | ||
| name: Delete Neon Branch | ||
| needs: setup | ||
| if: github.event_name == 'pull_request' && github.event.action == 'closed' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Delete Neon Branch | ||
| uses: neondatabase/delete-branch-action@v3 | ||
| with: | ||
| project_id: ${{ vars.NEON_PROJECT_ID }} | ||
| branch: preview/pr-${{ github.event.number }}-${{ needs.setup.outputs.branch }} | ||
| api_key: ${{ secrets.NEON_API_KEY }} |
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert this file |
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.
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.