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

Limit code repetition in app/views.py #441

Merged
merged 4 commits into from
Mar 26, 2023
Merged

Conversation

HirumalPriyashan
Copy link
Contributor

As this issue points out, there are redundant code segments in the app/views.py. This PR will removes few redundant code segments from there.
Additionally, have removed unused imports from app/views.py.

@goneall goneall requested a review from rtgdk March 10, 2023 22:10
src/app/views.py Outdated Show resolved Hide resolved
src/app/views.py Outdated Show resolved Hide resolved
src/app/views.py Show resolved Hide resolved
Change function name to get_context_dict_for_license_xml from get_context_dict

Signed-off-by: Hirumal Priyashan <[email protected]>
Signed-off-by: Hirumal Priyashan <[email protected]>
@rtgdk
Copy link
Collaborator

rtgdk commented Mar 12, 2023

Overall LGTM @HirumalPriyashan . Thanks for working on this!

Let's run tests on these change and post the screenshot. Will merge after that.
python manage.py test

@HirumalPriyashan
Copy link
Contributor Author

Running all the tests through python manage.py test already producing errors. Which I have mentioned here.

Have check which tests are depend on the changes and checked whether they are passing.
image

@rtgdk rtgdk merged commit 1fc2e99 into spdx:main Mar 26, 2023
@rtgdk
Copy link
Collaborator

rtgdk commented Mar 26, 2023

Thanks @HirumalPriyashan for the contribution

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.

2 participants