Skip to content

feat: Adds Legal Agreements object for dynamic agreements #429

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

Merged
merged 12 commits into from
Dec 11, 2020
Merged

Conversation

cbaudouinjr
Copy link
Member

@cbaudouinjr cbaudouinjr commented Dec 11, 2020

Remaining issues:

  • Need newline for each agreement
  • Need validation for missing agreement while completing questionnaire form
  • manage/questionnaire/#/edit agreements card looks weird

Copy link
Contributor

@peterkos peterkos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall! Just a few changes for now; i'll take another pass once these are done.

@cbaudouinjr cbaudouinjr requested a review from peterkos December 11, 2020 07:06
@cbaudouinjr cbaudouinjr removed this from the v.2.1.0 milestone Dec 11, 2020
@cbaudouinjr cbaudouinjr removed the 2.1 label Dec 11, 2020
@peterkos peterkos added the 2.1 label Dec 11, 2020
Copy link
Contributor

@peterkos peterkos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -215,6 +215,26 @@ def verbal_status
end
end

def agreements_present
if (Agreement.all - agreements).any?
errors.add(:agreements, "must be accepted.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2020-12-11 at 2 17 59 AM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this no longer works haha #437

.card.mb-4
.card-header Agreements
.card-body
= f.association :agreements, as: :check_boxes, label_method: :formatted_agreement, value_method: :id, label: ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug filed #434

@cbaudouinjr cbaudouinjr merged commit c402b8e into 2.1 Dec 11, 2020
@cbaudouinjr cbaudouinjr deleted the hm-377 branch December 11, 2020 08:05
cbaudouinjr added a commit that referenced this pull request Dec 11, 2020
* Fixed issue on desktop

* Map overflow scroll

Signed-off-by: Peter Kos <[email protected]>

* Fix scroll issue

Signed-off-by: Peter Kos <[email protected]>

* Fixed toggle button; fits screen, sidebar width

Sidebar width is better
Toggle button fills height of navbar

Signed-off-by: Peter Kos <[email protected]>

* fix: Allows optional assets to be unset

* Fixes test

* feat: Redesigns OAuth2 portal (#404)

* feat: Redesigns OAuth2 portal

* fix: Some Hound issues

* Changes application verbiage

* Fixes ID issue

* Fixes table link and sign out button

* Peter's wishes

* fix: Fixes MyMLH branding in config (#412)

* feat(settings): Simplifies Config (#409)

* feat(settings): Simplifies Config

* Resolves Hound issues

* Update app/views/manage/configs/index.html.haml

Co-authored-by: Peter Kos <[email protected]>

* design: Increases the font-weight and reorganizes the page

* fix: Hound issues

Co-authored-by: Peter Kos <[email protected]>

* feat: Adds support for digital-only hackathons (#395)

* feat: Adds support for digital-only hackathons

* fix: Provides clarity for what is removed from digital hackathons

Co-authored-by: Peter Kos <[email protected]>

* feat: Adds GitHub Action for releases (#426)

* feat: Adds GitHub Action CI testing (#423)

* feat: Adds GitHub Action CI testing

* fix: Adds sudo

* refactor: Changes naming

* Removes travis.yml

* docs: Adds ruby version comment

* feat: Adds Legal Agreements object for dynamic agreements (#429)

* feat: Adds Legal Agreements object for dynamic agreements

* fix: Fixes several bugs with agreement error checking

* fix: Fixes several Hound issues

* fix: Fixes some more Hound issues

* Update app/views/application/_unaccepted_agreements_notice.html.haml

Co-authored-by: Peter Kos <[email protected]>

* fix: Fixes Peter's requests

* Fix agreement checkbox wrap with small names

Signed-off-by: Peter Kos <[email protected]>

* Fix straggling merge conflict error

Signed-off-by: Peter Kos <[email protected]>

* Removed agreements card

Signed-off-by: Peter Kos <[email protected]>

* Force validation for agreement on questionnaire pg

FRONTEND

Signed-off-by: Peter Kos <[email protected]>

Co-authored-by: Peter Kos <[email protected]>

* refactor: Changes hackathon_manager to HackathonManager (#417)

Co-authored-by: Peter Kos <[email protected]>

* feat: Adds GitLab VCS URL support (#415)

* feat: Adds GitLab VCS URL support

* fix: Corrects Bitbucket capitalization

* Update schema.rb

Removes events

* Update test/models/questionnaire_test.rb

Co-authored-by: Peter Kos <[email protected]>

* Update test/models/questionnaire_test.rb

Co-authored-by: Peter Kos <[email protected]>

Co-authored-by: Peter Kos <[email protected]>

* fix: Fixes pluralization of "Callback URL" (#421)

* fix: Fixes pluralization of "Callback URL"

* refactor: Adds "(s)" to Callback URLs

Co-authored-by: Peter Kos <[email protected]>

* refactor: Removes legal section from config (#440)

* refactor: Removes legal section from config

* refactor: Removes agreement asset from locals

* Removes additional PDF asset messages

Co-authored-by: Peter Kos <[email protected]>

* fix(map): changed map overflow from scroll to auto (#428)

changed the map div from overflow scroll to overflow auto so that the
scroll bars do not show up when the map is large enough to not need them

Co-authored-by: Peter Kos <[email protected]>

* build(deps-dev): Bump semantic-release from 17.2.1 to 17.2.3 (#435)

Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.2.1 to 17.2.3.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](semantic-release/semantic-release@v17.2.1...v17.2.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Kos <[email protected]>

Co-authored-by: Peter Kos <[email protected]>
Co-authored-by: JeremyRudman <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@cbaudouinjr cbaudouinjr linked an issue Dec 22, 2020 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Development of a new Agreement object to allow users to add any number of agreements Add support for non-MLH hackathons
3 participants