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

Add management command to change Kiwi TCMS domain #1587

Merged
merged 1 commit into from
May 14, 2020

Conversation

schwarzkrieger
Copy link
Contributor

@schwarzkrieger schwarzkrieger commented Apr 28, 2020

Closes #971.

If you like it I'll write some tests.

@schwarzkrieger schwarzkrieger changed the title Add management command to change Base URL. Closes #971 Add management command to change Base URL.Closes #971 Apr 28, 2020
@schwarzkrieger schwarzkrieger changed the title Add management command to change Base URL.Closes #971 Add management command to change Base URL. Closes #971 Apr 28, 2020
@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #1587 into master will increase coverage by 0.52%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1587      +/-   ##
==========================================
+ Coverage   76.29%   76.81%   +0.52%     
==========================================
  Files         119      120       +1     
  Lines        4357     4343      -14     
  Branches      498      494       -4     
==========================================
+ Hits         3324     3336      +12     
+ Misses        869      844      -25     
+ Partials      164      163       -1     
Impacted Files Coverage Δ
tcms/core/management/commands/set_domain.py 100.00% <100.00%> (ø)
tcms/rpc/api/testexecution.py 73.49% <0.00%> (-4.14%) ⬇️
tcms/testcases/models.py 76.35% <0.00%> (-1.91%) ⬇️
tcms/testruns/views.py 78.96% <0.00%> (-0.59%) ⬇️
tcms/rpc/api/forms/testrun.py 86.27% <0.00%> (+0.27%) ⬆️
tcms/testcases/views.py 73.70% <0.00%> (+4.40%) ⬆️
tcms/testplans/models.py 97.59% <0.00%> (+12.29%) ⬆️
tcms/core/forms/fields.py 100.00% <0.00%> (+15.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f82e8c...ef9537b. Read the comment docs.

@schwarzkrieger schwarzkrieger changed the title Add management command to change Base URL. Closes #971 Add management command to change Base URL. Apr 28, 2020
Copy link
Member

@atodorov atodorov left a comment

Choose a reason for hiding this comment

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

Overall looks good.

  • Needs more work
  • Needs tests
  • Needs update to documentation

tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
Copy link
Member

@atodorov atodorov left a comment

Choose a reason for hiding this comment

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

Needs tests
Needs update to documentation

tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
@atodorov atodorov mentioned this pull request May 2, 2020
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
Copy link
Member

@atodorov atodorov left a comment

Choose a reason for hiding this comment

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

still todo

Copy link
Member

@atodorov atodorov left a comment

Choose a reason for hiding this comment

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

Needs changes, you can squash all commits together

tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/tests/factories.py Outdated Show resolved Hide resolved
tcms/management/tests/test_baseurl.py Outdated Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
tcms/management/tests/test_baseurl.py Outdated Show resolved Hide resolved
docs/source/admin.rst Show resolved Hide resolved
tcms/management/management/commands/baseurl.py Outdated Show resolved Hide resolved
Copy link
Member

@atodorov atodorov left a comment

Choose a reason for hiding this comment

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

Looks better now but still needs adjustments to naming and commit log.

Note: the URL for this section in the docs is also used in middleware which tells the when this isn't configured!

tcms/core/tests/test_baseurl.py Outdated Show resolved Hide resolved
tcms/core/tests/test_baseurl.py Outdated Show resolved Hide resolved
tcms/core/tests/test_baseurl.py Outdated Show resolved Hide resolved
docs/source/installing_docker.rst Outdated Show resolved Hide resolved
docs/source/installing_docker.rst Outdated Show resolved Hide resolved
tcms/core/management/commands/baseurl.py Outdated Show resolved Hide resolved
docs/source/installing_docker.rst Outdated Show resolved Hide resolved
docs/source/installing_docker.rst Outdated Show resolved Hide resolved
docs/source/installing_docker.rst Outdated Show resolved Hide resolved
@schwarzkrieger schwarzkrieger changed the title Add management command to change Base URL. Add management command to change Kiwi TCMS domain May 13, 2020
@atodorov atodorov merged commit 463bc83 into kiwitcms:master May 14, 2020
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.

Programatically changing Base URL
2 participants