Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b25a155
Add api endpoint for setting user password to be handled by moocfi
Redande Jul 10, 2025
28d495e
Validate request payload
Redande Jul 10, 2025
7a0ee92
Lessen code complexity for codeclimate
Redande Jul 10, 2025
17105ed
Further lessen code complexity
Redande Jul 10, 2025
e8e9296
Fix model spec
Redande Jul 10, 2025
c700924
Prune docker before spec_models
Redande Jul 11, 2025
a016ffd
Revert docker pruning before spec_models
Redande Jul 11, 2025
4940b77
Specify courses.mooc.fi, delete password details from db
Redande Jul 12, 2025
7f192b6
Add migration file, fix rubocop error
Redande Jul 12, 2025
d71bdd8
Update factorybot user for specs
Redande Jul 12, 2025
968b875
Don't call @user.save twice
Redande Jul 13, 2025
ce1f10a
Authenticate via courses.mooc.fi if boolean true
Redande Jul 15, 2025
e0cdbae
Use rest-client for authentication request
Redande Jul 22, 2025
a900bc5
Update password through courses if boolean is set
Redande Jul 22, 2025
0286f75
Add courses.mooc.fi user id to users-table
Redande Jul 23, 2025
cc333a4
User courses.mooc.fi user id instead of email
Redande Jul 23, 2025
0794e94
Add courses.mooc.fi user id when moving password management
Redande Jul 23, 2025
9f486e5
Authorize requests to courses.mooc.fi
Redande Jul 28, 2025
a38d633
Add enpoint for getting user details by email
Redande Aug 26, 2025
3e86cc4
Remove unnecessary logging
Redande Aug 26, 2025
fcf8bef
Add api v8 endpoint for deleting users
Redande Sep 23, 2025
51f0ae8
Use Faraday instead of RestClient
Redande Dec 3, 2025
730cab7
Rubocop fixes
Redande Dec 3, 2025
7eb65dd
Remove rest-client import
Redande Dec 4, 2025
da13414
Remove unused google drive gem and related logic
Redande Dec 4, 2025
85002db
Use transaction in new destroy user endpoint
Redande Dec 4, 2025
9fb251e
Add back ancient lost point routes
Redande Dec 4, 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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
with:
submodules: false
- name: Setup git submodules
run: |
Expand All @@ -29,7 +29,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
with:
submodules: false
- name: Setup git submodules
run: |
Expand All @@ -47,7 +47,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
with:
submodules: false
- name: Setup git submodules
run: |
Expand All @@ -65,7 +65,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
with:
submodules: false
- name: Setup git submodules
run: |
Expand All @@ -83,7 +83,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
with:
submodules: false
- name: Setup git submodules
run: |
Expand All @@ -101,7 +101,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
with:
submodules: false
- name: Setup git submodules
run: |
Expand All @@ -112,4 +112,4 @@ jobs:
- name: Setup database & test env
run: docker compose run web bin/rake db:create db:schema:load RAILS_ENV=test
- name: Run spec_integration tests
run: docker compose run web bin/spec_integration
run: docker compose run web bin/spec_integration
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ gem 'bootstrap', '~> 4.6' # Held back to 4.6
gem 'cancancan', '~> 3.6', '>= 3.6.1'
gem 'doorkeeper', '~> 5.7', '>= 5.7.1'
gem 'doorkeeper-openid_connect', '~> 1.8', '>= 1.8.9'
gem 'faraday', '~> 2.14'
gem 'file_validators', '~> 3.0' # Used to validate organization logo
gem 'font-awesome-rails', '~> 4.7', '>= 4.7.0.8'
gem 'google_drive', '~> 3.0', '>= 3.0.7', require: false
gem 'gravtastic', '~> 3.2', '>= 3.2.6' # Used to display user avatars
gem 'image_processing', '~> 1.12', '>= 1.12.2' # Used by active_storage to make logo 100x100 on the fly
gem 'logstasher', '~> 2.1', '>= 2.1.5'
Expand Down
75 changes: 10 additions & 65 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ GEM
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
date (3.3.4)
declarative (0.0.20)
diff-lcs (1.5.1)
docile (1.4.1)
domain_name (0.6.20240107)
Expand All @@ -148,29 +147,12 @@ GEM
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
railties (>= 5.0.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.2)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday (2.14.0)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.2)
net-http (~> 0.5)
ffi (1.17.0)
ffi-compiler (1.3.2)
ffi (>= 1.15.5)
Expand All @@ -182,36 +164,11 @@ GEM
railties (>= 3.2, < 8.0)
globalid (1.2.1)
activesupport (>= 6.1)
google-apis-core (0.11.3)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
google-apis-drive_v3 (0.46.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-sheets_v4 (0.26.0)
google-apis-core (>= 0.11.0, < 2.a)
google_drive (3.0.7)
google-apis-drive_v3 (>= 0.5.0, < 1.0.0)
google-apis-sheets_v4 (>= 0.4.0, < 1.0.0)
googleauth (>= 0.5.0, < 1.0.0)
nokogiri (>= 1.5.3, < 2.0.0)
googleauth (0.17.1)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.15)
gravtastic (3.2.6)
hiredis (0.6.3)
http-accept (1.7.0)
http-cookie (1.0.6)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
image_processing (1.13.0)
Expand Down Expand Up @@ -250,7 +207,6 @@ GEM
net-smtp
marcel (1.0.4)
matrix (0.4.2)
memoist (0.16.2)
method_source (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
Expand All @@ -265,11 +221,12 @@ GEM
mini_mime (1.1.5)
minitest (5.24.1)
multi_json (1.15.0)
multipart-post (2.4.1)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
mutex_m (0.2.0)
natcmp (1.4.3)
net-http (0.8.0)
uri (>= 0.11.1)
net-imap (0.4.14)
date
net-protocol
Expand All @@ -294,7 +251,6 @@ GEM
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
os (1.1.4)
parallel (1.25.1)
parser (3.3.4.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -386,10 +342,6 @@ GEM
regexp_parser (2.9.2)
reline (0.5.9)
io-console (~> 0.5)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
request_store (1.7.0)
rack (>= 1.4)
responders (3.1.1)
Expand All @@ -400,7 +352,6 @@ GEM
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
retriable (3.1.2)
rexml (3.3.2)
strscan
rspec (3.13.0)
Expand Down Expand Up @@ -478,11 +429,6 @@ GEM
sprockets (> 3.0)
sprockets-rails
tilt
signet (0.19.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -511,13 +457,12 @@ GEM
thor (1.3.1)
tilt (2.4.0)
timeout (0.4.1)
trailblazer-option (0.1.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.5.0)
uri (1.1.1)
webrick (1.8.1)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
Expand Down Expand Up @@ -557,9 +502,9 @@ DEPENDENCIES
doorkeeper (~> 5.7, >= 5.7.1)
doorkeeper-openid_connect (~> 1.8, >= 1.8.9)
factory_bot_rails (~> 6.4, >= 6.4.3)
faraday (~> 2.14)
file_validators (~> 3.0)
font-awesome-rails (~> 4.7, >= 4.7.0.8)
google_drive (~> 3.0, >= 3.0.7)
gravtastic (~> 3.2, >= 3.2.6)
hiredis (~> 0.6.3)
image_processing (~> 1.12, >= 1.12.2)
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/api/v8/apidocs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ class ApidocsController < ActionController::Base
key :required, true
key :type, :integer
end
parameter :path_user_email do
key :name, :user_email
key :in, :path
key :description, "User's email"
key :required, true
key :type, :string
end
parameter :path_exercise_id do
key :name, :exercise_id
key :in, :path
Expand Down
Loading