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

Prompt.render refactoring and updates to docker-compose.yml #233

Merged
merged 5 commits into from
Feb 25, 2018

Conversation

atodorov
Copy link
Member

No description provided.

For print and export there is a JavaScript function which
alerts the user if no objects were selected. Inside get() the
prompt was shown if the specified from_plan parameter didn't
match an actual TestPlan. We default to setting the test plan
to None as is the case when no test plan is specified.
This view function has never been used. It is not possible to
delete TestPlans via the regular UI and we've disabled access to
TestPlan admin in bf2b495.
The only way to actually delete a TestPlan object is via the
Django shell! If test plan is not to be used it should be disabled
instead!

With this view gone we also remove:

- PLAN_DELELE_EMAIL_TEMPLATE setting
- mail/delete_plan.txt template
- handle_emails_pre_plan_delete signal handler
- TestPlanEmailSettings.notify_on_plan_delete model field
The Export button inside TestPlan view does the same thing as the
Case->Export sub-menu item in the Cases tab. I remove it becase the
Case->Export sub-menu provides more flexibility (select what cases
to export).

Also remove the Export buttons from search and advanced search
result templates. If you'd like to export the cases from a given
plan you have to open it in a new browser window and use the menu -
NO SHORTCUTS anymore!
The problem is that some older versions of docker do not allow
mounting of files between the host and the container, they only
allow mounting directories and volumes. The stock docker versions
on CentOS 7 and RHEL 7 do this. You may see a similar error:

ERROR: for kiwi_web Cannot start service web:
    OCI runtime create failed: container_linux.go:348:
        starting container process caused "process_linux.go:402:
            container init caused "rootfs_linux.go:58: mounting
                "/root/kiwi/contrib/ssl/kiwi-https.crt" to
                rootfs "/var/lib/docker/overlay2 ....

To work around this problem I've moved the ssl certificates into
a common directory, mount that into the container and updated the
file paths where necessary.

WARNING: If you decide to override settings you will have to either
mount the settings file into the container or COPY that file and
rebuild the image!
this commit makes it easier to access the httpd logs, mostly useful
in case of error, and adds a small section about troubleshooting in
production.

There could still be issues with SELinux and file ownership depending
on how the host setup.

The helper instroduced in this commit only gets applied if you
use docker-compose to start Kiwi TCMS. If you don't logs will still
be inside the container!
@coveralls
Copy link

coveralls commented Feb 24, 2018

Pull Request Test Coverage Report for Build 685

  • 3 of 4 (75.0%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.06%) to 64.182%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tcms/testcases/views.py 2 3 66.67%
Files with Coverage Reduction New Missed Lines %
tcms/testcases/views.py 1 55.32%
tcms/core/models/fields.py 2 72.73%
Totals Coverage Status
Change from base Build 679: -0.06%
Covered Lines: 7721
Relevant Lines: 11284

💛 - Coveralls

@atodorov atodorov merged commit 52c63e9 into master Feb 25, 2018
@atodorov atodorov deleted the next_release branch February 25, 2018 14:16
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