Skip to content

Commit

Permalink
Merge pull request #87 from hubmapconsortium/yuanzhou/disable-matching
Browse files Browse the repository at this point in the history
Yuanzhou/disable matching
  • Loading branch information
yuanzhou authored Oct 6, 2023
2 parents e853a5d + 50ac0e4 commit 0e34398
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,8 +1859,13 @@ def registrations(globus_user_id):
return show_admin_error("This stage user does not exist!")
else:
# Check if there's any matching profiles in the `wp_connections` found
matching_profiles = get_matching_profiles(stage_user.last_name, stage_user.first_name, stage_user.email, stage_user.organization)
# Disabled by Zhou on 10/6/2023 to prevent decoding issue
# No longer need this matching profile feature for new members.
# matching_profiles = get_matching_profiles(stage_user.last_name, stage_user.first_name, stage_user.email, stage_user.organization)
#pprint(vars(list(matching_profiles)[0]))

# Use an empty list for all new registrations - Zhou 10/6/2023
matching_profiles = []
context = {
'isAuthenticated': True,
'username': session['name'],
Expand Down
10 changes: 5 additions & 5 deletions templates/individual_registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@ <h5 class="modal-title" id="exampleModalLongTitle">Deny registration</h5>
</div>
</div>

<!-- Disabled profile matching by Zhou 10/6/2023 -->
{% if data.matching_profiles|length > 0 %}

<div class="card mt-4">
<h5 class="card-header">Possible Existing Matching Profile</h5>
<div class="card-body">


{% if data.matching_profiles|length > 0 %}

{#
<div class="alert alert-info" role="alert">
Expand Down Expand Up @@ -219,11 +218,12 @@ <h5 class="modal-title" id="exampleModalLongTitle">Approve registraiton by using
<div class="alert alert-info" role="alert">
No matching profiles found from `wp_connections` table.
</div>
{% endif %}

</div>
</div>

{% endif %}



{% endblock %}
{% endblock %}

0 comments on commit 0e34398

Please sign in to comment.