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

Removed development console.log lines #2844

Merged
merged 7 commits into from
Jun 17, 2021

Conversation

cjreimer
Copy link
Contributor

This PR removes the development console.log lines I left in by accident in PR #2613.
Thanks to @callingmedic911 for catching!!

@callingmedic911
Copy link
Member

Thanks @cjreimer! I noticed these as well, no impact on functionality but thought I should let you know:

  • Should we also remove these? (From 77 to 80) Looks like same code around but commented.
  • There are double slash in imports in scaffolds snap at a few places (example), can you please check if this is intentional?
  • New TODOs at a few places, just wanted to double check if there's work due. Also let me know if I can help to resolve any. 🙂

@dac09
Copy link
Contributor

dac09 commented Jun 16, 2021

Looks good but worth addressing the comments above @cjreimer - thanks for this!

@cjreimer
Copy link
Contributor Author

Just pushed changes to address the comments. Thanks so much, @callingmedic911 for the QC! Not that's it's a good excuse, but I was obviously a bit busy and rushed when I was trying to close out this PR.

@thedavidprice
Copy link
Contributor

🚀 Thank you all! I'll take it from here and get this merged.

@thedavidprice thedavidprice self-assigned this Jun 16, 2021
@thedavidprice thedavidprice added this to the next-release-priority milestone Jun 16, 2021
@callingmedic911
Copy link
Member

Just pushed changes to address the comments. Thanks so much, @callingmedic911 for the QC! Not that's it's a good excuse, but I was obviously a bit busy and rushed when I was trying to close out this PR.

@cjreimer No worries! Gentle reminder about the second point:

There are double slash in imports in scaffolds snap at a few places (example), can you please check if this is intentional?

I haven't had the chance to look at the code but it could be due to some empty/null variable. For example /path/${emptyVariable}/remainingPath. Or am I missing something here? :)

@thedavidprice
Copy link
Contributor

@callingmedic911 ah, very interesting. I wonder if it's from const sP or const cPath here in this code that was changed (starting around line 54):
https://github.com/redwoodjs/redwood/pull/2613/files?file-filters%5B%5D=.js&file-filters%5B%5D=.template&file-filters%5B%5D=.ts#diff-97bce3cf4db8026a128a3524084ef34dc51cef5d93130d4caa4c032991982c2c

Copy link
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

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

@cjreimer Current changes are ok to go in as is, but if you are available it would be great to fix the // in this PR as well.

Just let me know if you'd prefer to merge this as is and then open an Issue or PR for next steps.

Thanks!

Components with the import //
I'm seeing this in the E2E project in the following places:

  1. web/src/components/Post/PostCell/PostCell.js
import Post from 'src/components//Post/Post'
  1. web/src/components/Post/Posts/Posts.js
import { QUERY } from 'src/components//Post/PostsCell'
  1. web/src/components/Post/PostsCell/PostsCell.js
import Posts from 'src/components//Post/Posts'
  1. For all pages, e.g. web/src/pages/Post/EditPostPage/EditPostPage.js
import EditPostCell from 'src/components//Post/EditPostCell'

others:

import NewPost from 'src/components//Post/NewPost'
...
import PostCell from 'src/components//Post/PostCell'
...
import PostsCell from 'src/components//Post/PostsCell'

@cjreimer
Copy link
Contributor Author

Thanks for all the catches! I'm sorry I missed these things! I'll get on it now this evening!

@cjreimer
Copy link
Contributor Author

OK, I addressed the // issue in the imports and added test coverage for this case as well. We had test coverage of the imports in the case of scaffold paths, but not in the case of no scaffold path being passed in.

Thanks for the catches, and please let me know if there's anything else needed!

@thedavidprice
Copy link
Contributor

Looks great @cjreimer Merging now 🚀

@thedavidprice thedavidprice merged commit 9b77f29 into redwoodjs:main Jun 17, 2021
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.

4 participants