Support #4243
openGist visibility update?
0%
Description
[tenderapp] report: https://rhodecode.tenderapp.com/help/discussions/questions/33218 reported by user: rhodecode@x.keshi.org
When I edit an existing public gist entry, it always turns into a private gist without any indications. And there seems no way to change the visibility of gists from private to public. Is this an intended behavior?
Confirmed with my own RhodeCode CE 4.3.1 installation and https://code.rhodecode.com.
How to reproduce:
- Sign in to https://code.rhodecode.com/.
- Open https://code.rhodecode.com/_admin/gists/new.
- Fill anything in the body and push "Create Public Gist" button.
- Push "Edit" button.
- Push "Update Gist" button.
Expected result:
- The gist entry should remain public.
Actual result:
- The gist entry turns into "Private Gist".
Updated by Marcin Kuzminski [CTO] about 8 years ago
Hi !
Thanks for reporting this, we will fix this ASAP, and produce a bugfix release in next 1-2 days.
Updated by Marcin Kuzminski [CTO] about 8 years ago
- Assignee set to Marcin Kuzminski [CTO]
- Priority changed from Normal to High
- Target version set to v4.5
- Private changed from Yes to No
Updated by Martin Bornhold about 8 years ago
- Assignee changed from Marcin Kuzminski [CTO] to Martin Bornhold
Updated by Redmine Integration about 8 years ago
pullrequest created by martinb (status: under_review). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2725
Updated by Redmine Integration about 8 years ago
Commit 7e3c29b06881 by Martin Bornhold martin@rhodecode.com on default branch references this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/7e3c29b06881b68b8ea0e77ef9d45f25189cdcd1
Commit 09e9d36f713c by Martin Bornhold martin@rhodecode.com on default branch references this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/09e9d36f713cddccdc3dcd09d29b61784d830a9e
Updated by Redmine Integration about 8 years ago
pullrequest merged by marcink (status: approved). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2725
Updated by Redmine Integration about 8 years ago
Commit 30d122234f34 by Martin Bornhold martin@rhodecode.com on stable branch references this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/30d122234f342845a6d8a0b00ab40656fda1000a
Commit c0c2529a7aad by Martin Bornhold martin@rhodecode.com on stable branch references this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/c0c2529a7aada8b317d3098bc86287ba0642dc68
Updated by Martin Bornhold about 8 years ago
- Status changed from In Progress to Resolved
The problem was a wrong default value in the colander schema. On edit we don't send a value for the type attribute and therefore an invalid default value get's inserted into the DB, only 'private' or 'public' are allowed. When filtering with 'private' or 'public' the gists with invalid values are "hidden".
Fixed with https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2725