-
Notifications
You must be signed in to change notification settings - Fork 32
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
Markup for phase editing in groups #1248
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1248 +/- ##
==========================================
- Coverage 77.39% 77.08% -0.32%
==========================================
Files 464 469 +5
Lines 12162 12354 +192
==========================================
+ Hits 9413 9523 +110
- Misses 2749 2831 +82
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
Just review my comments. Most of them are scopes in the queries (we should avoid this error from now on ;)
And a couple of things:
-
When editing the phases of the process, in the breadcrumb the title of the process is not visible
-
When editing a stage in the breadcrumb says CMS
-
In
Process
model:next_stage
should use the new ordering, not the date- same with
showcase_stage
- in
current_stage
: remove the comment self.open
gets all the processes of all the sites. That method is quite dangerous. Is it used somewhere?
-
The URL of the Information and Results page should keep the user in the process. Now, it takes the user to the CMS section, and it should be the show action inside the process.
@@ -23,7 +23,7 @@ | |||
@import "simplemde.min"; | |||
@import "tipsy"; | |||
@import "jqtree"; | |||
@import "codemirror"; | |||
// @import "codemirror"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private | ||
|
||
def find_process_stage | ||
::GobiertoParticipation::ProcessStage.find(params[:process_stage_id]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scope: current_process.stages.find...
end | ||
|
||
def find_process_stage_page | ||
::GobiertoParticipation::ProcessStagePage.find(params[:id]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scope: @process_stage.process_stage_page...
end | ||
|
||
def find_process_stage | ||
::GobiertoParticipation::ProcessStage.find(params[:id]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scopes...
def build_information_stage | ||
process.stages.build( | ||
process: process, | ||
title_translations: { 'en' => 'Information', 'es' => 'Información' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add Catalan?
end | ||
|
||
def process | ||
@process ||= GobiertoParticipation::Process.find_by(id: process_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current_site.processes
module GobiertoAdmin | ||
module GobiertoParticipation | ||
module ProcessStagesHelper | ||
def admin_stage_url(stage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method returns paths, it should be named admin_stage_path
?
Alvaro, estuvo probando "Remove the Codemirror CSS temporarily to see how
it feels"
7ae4ea9
<7ae4ea9>
@furilo <https://github.com/furilo>, what do we do?
Don’t use it, we can remove the commented reference
…
|
@ferblape I've corrected all the "requested changes" except |
Thanks @apradillap just two more details I have just noticed:
Feel free to release after fixing these two issues 🚀 |
Also @apradillap could you reference in the PR all the issues it closes? 1238, 1235.... |
Closes #1234 #1236 #1141 #1237 #1239 #1235 #1238
What does this PR do?
How should this be manually tested?
Alvaro's revision