Skip to content

383737 - Make moves require a MovesProjectStep #401

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

Conversation

nicolas-brousse
Copy link
Collaborator

No description provided.

@nicolas-brousse nicolas-brousse force-pushed the 383737-make-moves-require-a-moves_project_step branch from 0c7b276 to 51f202d Compare May 21, 2025 14:32
@nicolas-brousse nicolas-brousse marked this pull request as ready for review May 21, 2025 16:11
@B-Rass B-Rass self-requested a review May 28, 2025 09:10
Copy link
Collaborator

@B-Rass B-Rass left a comment

Choose a reason for hiding this comment

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

L'affichage de la baie ne fonctionne pas quand on créé un déplacement.

J'ai l'erreur suivante dans les logs :

web    | ActiveRecord::RecordNotFound (Couldn't find Server without an ID):
web    |
web    | app/controllers/moves_controller.rb:92:in 'MovesController#load_server'
web    | config/initializers/fix_headers_middleware.rb:12:in 'FixHeadersMiddleware#call'

config/routes.rb Outdated
get :load_connection
get "/frames/:frame_id", to: "moves#frame", as: :frame
get "/print/:frame_id", to: "moves#print", as: :print
match 'update_connection', to: 'moves#update_connection', via: %i[patch post put]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
match 'update_connection', to: 'moves#update_connection', via: %i[patch post put]
match "update_connection", to: "moves#update_connection", via: %i[patch post put]

@@ -121,7 +122,7 @@ function select_frame(frame_id, view){
console.log("Selected frame : " + JSON.stringify(frame_id));
$.ajax({
method: "GET",
url: "<%= load_frame_moves_path %>",
url: "<%= load_server_moves_project_step_moves_path(moves_project_step) %>",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
url: "<%= load_server_moves_project_step_moves_path(moves_project_step) %>",
url: "<%= load_frame_moves_project_step_moves_path(moves_project_step) %>",

@nicolas-brousse
Copy link
Collaborator Author

L'affichage de la baie ne fonctionne pas quand on créé un déplacement.

J'ai l'erreur suivante dans les logs :

web    | ActiveRecord::RecordNotFound (Couldn't find Server without an ID):
web    |
web    | app/controllers/moves_controller.rb:92:in 'MovesController#load_server'
web    | config/initializers/fix_headers_middleware.rb:12:in 'FixHeadersMiddleware#call'

Not sure to understand how to reproduce this

@B-Rass B-Rass merged commit ff66dac into nanego:master May 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants