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

PR: Get Org Members from GitHub API #17 #207

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
be13102
outline of functions required for #17
nelsonic Dec 13, 2024
b375ac9
explicitly export GH_PERSONAL_ACCESS_TOKEN in ci.yml for #208
nelsonic Dec 13, 2024
ff28e1a
insert github user #17
nelsonic Dec 14, 2024
170fec6
Repo.insert(on_conflict: :replace_all, conflict_target: [:id])
nelsonic Dec 15, 2024
0d7c25b
tidy up #1 #211
nelsonic Dec 18, 2024
645073b
add real test assertions to test/app/github_test.exs for #17
nelsonic Dec 25, 2024
adf6abe
config: deserialization_options: [keys: :atoms]
nelsonic Dec 26, 2024
653be14
App.GitHub.org_user_list/1 now returns *all* 521 users in a single AP…
nelsonic Dec 26, 2024
76eb6a5
data stream to client working! #17
nelsonic Jan 7, 2025
9e7ba61
use card for displaying github profile #17
nelsonic Jan 7, 2025
a73e5cc
fix failing test
nelsonic Jan 7, 2025
b5f4236
invoke Useful.truncate/3 to restrict bio length see: https://github.c…
nelsonic Jan 13, 2025
5f19c5a
Merge branch 'main' into get-members-from-rest-api-issue-#1
nelsonic Jan 13, 2025
b4f9320
ignore the 404 for now ... #216
nelsonic Jan 14, 2025
c07c134
address 404 error #216
nelsonic Jan 15, 2025
9b93f69
add tests and cut untested code. everything still works. #17
nelsonic Jan 15, 2025
bf8f05f
render wall of faces #219
nelsonic Jan 15, 2025
6b43513
setup deps, files, functions & tests for image color extraction #221
nelsonic Jan 16, 2025
278f5cb
add image & vix deps for #221
nelsonic Jan 16, 2025
925dee9
Img.get_avatar_color(avatar_url) implemented for #221
nelsonic Jan 16, 2025
a9708d7
Merge branch 'main' into get-members-from-rest-api-issue-#1
nelsonic Jan 16, 2025
b2bd894
add more tests for image dominant color #221
nelsonic Jan 16, 2025
785ee20
add :hex to user schema for face wall sorting #222 #221 #219
nelsonic Jan 19, 2025
abadb1d
create App.Repository.get_repo_id_by_full_name/1 for #223
nelsonic Jan 20, 2025
19ed306
implement get_stargazers_for_repo/2 for #223
nelsonic Jan 20, 2025
572ae2d
address warnings for large integers #223
nelsonic Jan 20, 2025
3725742
add GitHub token permissions instructions to README.md fixes #206
nelsonic Jan 27, 2025
a4b8b5f
add GitHub Api instructions to BUILDIT.md #207
nelsonic Jan 27, 2025
fd16b49
add code for API request logging #226
nelsonic Jan 27, 2025
4f35220
create Reqlog.req_count_last_hour/0 for #226
nelsonic Jan 28, 2025
1d08a93
expose request count in LiveView to visualise #226
nelsonic Jan 28, 2025
b737aa9
attempt to use Elixir 1.18.2 and OTP 27.2 in ci for #229
nelsonic Jan 29, 2025
4199fe5
add docs for req_count_last_hour/0 #226
nelsonic Jan 29, 2025
04ab098
fix failing test after refactor
nelsonic Jan 30, 2025
87e40ff
create list_incomplete_users/0 for #226
nelsonic Jan 31, 2025
0209676
enable API Manager closes #226 😎
nelsonic Jan 31, 2025
2f3018b
fully test api_manager #226
nelsonic Jan 31, 2025
a8d42a8
WiP: almost have Get Orgs For User #232 working ... 2 failing tests ...
nelsonic Feb 1, 2025
c84e15a
add Org.backfill/0 function to get orgs as part of the background pro…
nelsonic Feb 1, 2025
9a1f5bd
Orgmember.get_users_for_org/1 βœ…
nelsonic Feb 1, 2025
fdc896e
setup GitHub.followers/1 for #227
nelsonic Feb 2, 2025
4adc9dc
finish App.Follows.get_followers_from_api/2 for #227
nelsonic Feb 3, 2025
0c6f714
add tests for App.Follow.get_following_id/2 happy path #227
nelsonic Feb 3, 2025
31939aa
add App.Follower.get_followers_from_api(org.login, true) to App.Org.b…
nelsonic Feb 3, 2025
5b1f18e
fix typo: Follower -> Follow #227
nelsonic Feb 3, 2025
8d677ab
backfill user followers
nelsonic Feb 3, 2025
b5ef103
create Contribs with basic functions for #20
nelsonic Feb 3, 2025
4d69ad0
appear to have broken something ... 🀷
nelsonic Feb 3, 2025
8cd5b6a
fix & refactor
nelsonic Feb 3, 2025
ce63f7e
finish Contribs module with tests and usage closes #20
nelsonic Feb 3, 2025
dff2761
dont overwrite users with incomplete data!! #86
nelsonic Feb 10, 2025
c3e414b
ignore response of create_incomplete_user_no_overwrite/1 for error ca…
nelsonic Feb 10, 2025
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
6 changes: 4 additions & 2 deletions .env_sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export ENCRYPTION_KEYS='nMdayQpR0aoasLaq1g94FLba+A+wB44JLko47sVQXMg=,L+ZVX8iheoqgqb22mUpATmMDsvVGtafoAeb0KN5uWf0='
export SECRET_KEY_BASE=2PzB7PPnpuLsbWmWtXpGyI+kfSQSQ1zUW2Atz/+8PdZuSEJzHgzGnJWV35nTKRwx
export AUTH_API_KEY=88SwQGzxQEvo6S9Pu7FZGp9btNo52rVkwtrhyub9i6K6UxVqho9A/88SwQGswuPR1uYWEjFm8tBeHjXQ7LMnc5p6deCs3H2Fb8vbUWf8t/dwylauth.herokuapp.com
export AUTH_API_KEY=YTsV7fG5mZ2KRWmvE3u431sZYsaZhhC8oqvQSDg85VnqMQXSDEBjh/YTsV7TBnHp1yxy2LLxBZYyVBrTYPtiKjLbApKiFkva3YQ8rrGgYeV/authdemo.fly.dev

# https://github.com/settings/tokens/new
export GH_PERSONAL_ACCESS_TOKEN=YourTokenHere
export GH_PERSONAL_ACCESS_TOKEN=YourTokenHere

export ORG_NAME=dwyl
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Set up Elixir
uses: erlef/setup-beam@v1 # https://github.com/erlef/setup-beam
with:
elixir-version: '1.14.3' # Define the elixir version [required]
otp-version: '25.0' # Define the OTP version [required]
elixir-version: '1.18.2' # Define the elixir version [required]
otp-version: '27.2' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
with:
Expand All @@ -42,6 +42,7 @@ jobs:
MIX_ENV: test
AUTH_API_KEY: ${{ secrets.AUTH_API_KEY }}
ENCRYPTION_KEYS: ${{ secrets.ENCRYPTION_KEYS }}
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

Expand Down
Loading
Loading