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

Jade dickinson show contributor name #917

Merged
merged 16 commits into from
Jun 18, 2021

Conversation

svileshina
Copy link
Collaborator

@svileshina svileshina commented Mar 26, 2021

Why

This adds the contributor's name to a contribution - Working off of #791

What

Added the contributor name to contributions through contribution.person, so added person to the contribution blueprint and appropriate tests and supporting files

Next Steps

Outstanding Questions, Concerns and Other Notes

We would like to replace raw json (i.e. lib/contributions.json) in the future

Meta

We added Jade as a contributor because this was based on their work (#791) and closed their original PR that had merge conflicts

Pre-Merge Checklist

  • Security & accessibility have been considered
  • Tests have been added, or an explanation has been given why the features cannot be tested
  • Documentation and comments have been added to the codebase where required
  • Entry added to CHANGELOG.md if appropriate
  • Outstanding questions and concerns have been resolved
  • Any next steps have been turned into Issues or Discussions as appropriate

JadeDickinson and others added 6 commits October 18, 2020 10:06
Co-authored-by: maebeale <maebeale@gmail.com>
Co-authored-by: maebeale <maebeale@gmail.com>
Co-authored-by: connieh1 <connie2630a@gmail.com>
Co-authored-by: JadeDickinson <14929975+JadeDickinson@users.noreply.github.com>
Co-authored-by: maebeale <maebeale@gmail.com>
@svileshina
Copy link
Collaborator Author

svileshina commented Apr 10, 2021

we are going to wait on for the "Add a conditional so this is only displayed for logged in users with admin permissions" to be done before potentially merging @maebeale #933

@svileshina
Copy link
Collaborator Author

Some thoughts/questions we had in trying to make this conditional:

  • we can keep pronouns (get rid of split)
  • we are want to move conditional into blueprinter which requires figuring out dynamic selection of which view to render (similar "Supporting Dynamic Blueprints For Associations" of blueprinter... perhaps)
  • alternative: just put the conditional and name into a presenter which then gets passed to serializer

Instead of trying to split before parentheses.

We believe this was intended to hide any extra details entered by
the user, such as gender pronouns. But that format is not predictable,
and this simplifies the code.
Conflicts:
      lib/contributions.json
      spec/blueprints/contribution_blueprint_spec.rb
And provide it in `contributions_controller`.
Note: the testing pattern used in ListBrowser.spec.js mutates fixture
data which is asking for trouble. I've stuck with it in this commit and
left a fixme to come back around and clean it up.
@solebared solebared force-pushed the JadeDickinson-show-contributor-name branch from a21f987 to 3c72d76 Compare June 14, 2021 21:19
@solebared
Copy link
Collaborator

@svileshina , please take a look at my 3 most recent commits. I believe this completes the outstanding issues on this branch?

@solebared solebared marked this pull request as ready for review June 18, 2021 00:44
Copy link
Collaborator

@solebared solebared left a comment

Choose a reason for hiding this comment

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

Reviewed in person with @svileshina .

@svileshina
Copy link
Collaborator Author

looks great, thank you for all the work!!!

@solebared solebared merged commit 5459510 into main Jun 18, 2021
@solebared solebared deleted the JadeDickinson-show-contributor-name branch June 18, 2021 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants