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

[MERGE WITH GIT FLOW] Fix candidate filing pages for missing amendment chain #2505

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

lbeaufort
Copy link
Member

@lbeaufort lbeaufort commented Nov 13, 2018

Summary (required)

Fix candidate filing pages for missing amendment chain. In rare occasions like this filing, a F99 will get coded as a F2 and won't have an amendment chain. This PR checks for an amendment chain before trying to check its length.

Impacted areas of the application

List general components of the application that this PR will affect:

  • Candidate filings page

Screenshots

Before

screen shot 2018-11-13 at 12 19 52 pm

screen shot 2018-11-13 at 12 29 21 pm

After

screen shot 2018-11-13 at 12 21 20 pm

screen shot 2018-11-13 at 12 29 04 pm

Related PRs

#2410

How to test

Filings should load:
http://localhost:8000/data/candidate/P80001571/?tab=filings
http://localhost:8000/data/filings/?data_type=processed&candidate_id=P80001571

@lbeaufort lbeaufort added the HOTFIX Merge with git flow label Nov 13, 2018
@lbeaufort lbeaufort requested a review from patphongs November 13, 2018 17:24
@lbeaufort lbeaufort changed the base branch from develop to master November 13, 2018 17:24
Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

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

amendment_chain that is null is now working. Thanks @lbeaufort

@lbeaufort lbeaufort merged commit 8669e95 into master Nov 13, 2018
@lbeaufort lbeaufort deleted the hotfix/fix-candidate-filing-page branch November 16, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HOTFIX Merge with git flow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants