Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update README.md (#305) * Update README.md * Update README.md * Update README.md * Spacing * feat(users): Integrate a mapping between batch numbers and campuses from scrapped data (#289) * Migrate fork branch * batch_map.csv added to assets * removed size from City model * added size to Batch model * added city reference to Batch * added association between Batch and City + removed size from City model * Added batch_map to seed + gave uid to test users * added automatic city_id distribution on save to User model * added some changes by Aquaj to seed.rb and users/edit.erb * refactor * Removed batch from permitted parameters * Removed city foreign_key from users * Removed ignored_columns size from city and city_id from user * Moved batch_map.csv to db/static * Add kitt scrapper script (python) to db/scripts * fix(cities): restore size column for cities table * feat(batch_map): rewrite scrapper in ruby and change data to be user scoped including batch year * fix(batch_map): refactor seed to avoid doing multiple request to the DB for the same City * feat(batch_map): move scrapper to a Job with CRON on Dec 1st * Disabled city update for users that have a batch * fix(batch_map): rubocop offense * Rename batch_map csv to kill_alumni csv * Remove batch_year column migration * Refactor current_user.batch to explicit #blank? and #present? booleans * Add vanity_name column to cities * Fix typo in Scraper * Rename KittScraperJob kwargs * Refactor KittScrapperJob with CSV headers * Fix users without batches not able to choose a city since remove city from User * Fix tests * Readd disabled confitions in UserFormComponent * fix(users): moved user city validation inside model * Fix CityPoints spec * Fix CityScores spec * Fix spacing * Clarify condition on disabled city input * Remove cron for Kitt scraper * Set vanity name before create * Handle case when user has no batch and picks a city * Fix display of scraper pages --------- Co-authored-by: Louis Ramos <wjoenn@gmail.com> Co-authored-by: Jérémie <jeremie.bonal@gmail.com> Co-authored-by: pil0u <8350914+pil0u@users.noreply.github.com> * Bump sentry-rails and sentry-ruby (#309) Bumps [sentry-rails](https://github.com/getsentry/sentry-ruby) and [sentry-ruby](https://github.com/getsentry/sentry-ruby). These dependencies needed to be updated together. Updates `sentry-rails` from 5.12.0 to 5.13.0 - [Release notes](https://github.com/getsentry/sentry-ruby/releases) - [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-ruby@5.12.0...5.13.0) Updates `sentry-ruby` from 5.12.0 to 5.13.0 - [Release notes](https://github.com/getsentry/sentry-ruby/releases) - [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-ruby@5.12.0...5.13.0) --- updated-dependencies: - dependency-name: sentry-rails dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: sentry-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Double quotes everywhere (#311) * Double quotes everywhere * Encore * Re-add the staging environment in Sentry (#313) * Fix GithubStar achievement by doing nothing if the response code of the request is not 200 (#310) * fix(users) rename leftover 'city' to 'campus' (#315) * feat(users): enabled cookie based referral system (#291) * Add #referrer and #referrees to User * Add referrer code form to setup * Add referrement code to settings page * fix erblint * fix(users) minor templating changes * fix(users): refactored User::by_referral_code * fix(users): disable self-referral * fix(users): add find_by_referral_code to Rubocop::Rails::DynamicFindBy::Whitelist * fix(users): referrer from ternary to ... unless ... * feat(users): enabled cookie based referral system * fix(users): apply review comments * feat(users): display referrees in settings (#314) * feat(users): update referral sentence in settings * feat(users): add links to referrees in settings * feat(users): add links for squad users * refactor(users): remove #to_raw_links * refactor(users): sanitize to safe_join * Add margin and pluralize the user(s) * Rename referree to referee * Add instance variable, for readability + fix quotes --------- Co-authored-by: pil0u <8350914+pil0u@users.noreply.github.com> * Auto-assign a leaderboard to new users (#286) * Add Louis and Aurélie as contributors * Add private_leaderboard column to Users * Assign the emptiest leaderboard to every new user * Add AOC_ROOMS env variable in tests to allow user update * Move the AOC_ROOMS env variable for the test environment into a dedicated .env.test file * Naming * Add guard clause if for some reason the private leaderboard is already associated to the user * Create an Admin page, with links to useful tools (#312) * Add an impersonate User action for admins * Add an admin page from which you can login, but accessible only for admins. It contains link to admin tools: blazer, good_job and the impersonation tool * Add useful heroku commands * Add the possibility to impersonate via uid or aoc_id * Spacing * Spacing * Slightly adjust finding logic + add false-positive to brakeman ignore file * Rollback formatting --------- Co-authored-by: Jérémie <jeremie.bonal@gmail.com> * Update the Code of Conduct (#321) * Rename to code of conduct with all letters in the footer * Improved the wording, emphasised the importance of being respectful, friendly and positive * Bump good_job from 3.21.0 to 3.21.1 (#323) Bumps [good_job](https://github.com/bensheldon/good_job) from 3.21.0 to 3.21.1. - [Release notes](https://github.com/bensheldon/good_job/releases) - [Changelog](https://github.com/bensheldon/good_job/blob/main/CHANGELOG.md) - [Commits](bensheldon/good_job@v3.21.0...v3.21.1) --- updated-dependencies: - dependency-name: good_job dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Slack account link (#316) * Better handling of failures during omniauth signin Fix nesting so custom defined `failure` actually exists on the controller + rely on Devise `failure_message` which is better implemented than our own error-message extractor + extract part of thelogic to small private method that'll help us later * Add Slack OpenID Omniauth strategy * Add button to link account * Add unlinking mechanism * Rubocop * Add spec for unlinking * Add back controllers: config bc it's actually needed to set some internal attributes of OmniAuth * Create helper to handle complex error-mocking logic for OmniAuth * Add spec for omniauth slack callback * Rubocop * ERB Lint * Rubocop Again * Consistent notice before redirect * Spacing * Reorder methods and add slack_deep_link * Add Font Awesome Slack icon (and remove the unused Plus) * Remove margin from component * Adjust style for the Slack integration section * Slightly adjust the spacing in squad settings * Move the Slack settings below the Squad settings * Add handling of failed updates * Add storage for Slack access-token as we might need it. * Use fail_auth in #kitt Omniauth callback too. * Rubocop * Add Slack credentials and active record encryption key set in production --------- Co-authored-by: pil0u <8350914+pil0u@users.noreply.github.com> * fix(campus): rename view files and template references of city to campus (#324) * fix(campus): rename view files and template references of city to campus * fix(campus): tests * feat(campus): further migrate cities to campuses * fix(campus): update campus route path * Fix the user show * Show and order cities dropdown by vanity_name * Form label * Update campus show * CityRowComponent -> CampusRowComponent --------- Co-authored-by: pil0u <8350914+pil0u@users.noreply.github.com> * Plug Batch info on Kitt callback and move back City on User to simplify validation logic. (#325) * Plug Batch info on Kitt callback and move back City on User to simplify validation logic. * Rubocop * fix(users): revert some changes * fix(users): undo everything from #289 * fix(users): use kitt city name instead of slug * fix(users) last comments * fix(users): remove empty city froms seed * Wording + spacing * Remove Testville --------- Co-authored-by: Louis Ramos <louisramosdev@gmail.com> Co-authored-by: pil0u <8350914+pil0u@users.noreply.github.com> * Refresh the FAQ (#326) * Update the wording of the existing FAQ * Remove data notice in settings, it's already in the FAQ * Reorder questions * Remove horrendous spaces * Remove CSV --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Louis Ramos <75388869+wJoenn@users.noreply.github.com> Co-authored-by: Louis Ramos <wjoenn@gmail.com> Co-authored-by: Jérémie <jeremie.bonal@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Louis Ramos <louisramosdev@gmail.com>
- Loading branch information