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
Fixes #26013 - Add GraphiQL console #6471
Conversation
Issues: #26013 |
Lovely, this makes me so happy. @ekohl: Can you ack? We don't need any packaging for this as it's just available in a dev environment. |
bundler.d/graphiql.rb
Outdated
@@ -0,0 +1,3 @@ | |||
group :development, :test do |
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.
why is this needed in test
?
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.
I guess it's not needed there. Development should be enough. Good catch.
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.
I removed it from :test
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.
I guess it should go into development.rb
then, as it's in that bundler group.
bb28c64
to
50aa5c8
Compare
Was wondering if we want to create some place with all of these helper apps when in development mode. Some tiny icon because this way only graphql people will use that. Let's advertise this on some page. Maybe we have more of these tools available today, the thing is I don't remember. https://triviahappy.com/articles/welcome-to-the-net-every-webpage-from-the-1995-movie-the-net |
@lzap what about submenu in navigation bar? |
50aa5c8
to
648d68a
Compare
@lzap, what do you think? |
app/registries/menu/loader.rb
Outdated
|
||
if Rails.env.development? | ||
Manager.map :devel_menu do |menu| | ||
menu.sub_menu :devel_tools, :caption => 'Develop tools', :icon => 'pficon pficon-maintenance' do |
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.
I would choose a single word as a caption, e.g. Toolbox
.
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.
I changed it to Toolbox
648d68a
to
9569bfd
Compare
@xprazak2 tests fail 💔 |
9569bfd
to
62950cf
Compare
@xprazak2: Can you rebase, please? |
62950cf
to
00daefc
Compare
Rebased. |
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.
👍 from a packaging perspective.
00daefc
to
dc40a8f
Compare
I changed a condition when item is added to menu to |
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.
Nice! :-)
@ekohl: Can we please get another ack? Thanks. |
config/routes.rb
Outdated
@@ -549,4 +549,8 @@ | |||
delete 'group/:group' => 'notification_recipients#destroy_group' | |||
end | |||
end | |||
|
|||
if Rails.env.development? |
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.
This also needs && defined?(::GraphiQL::Rails::Engine)
dc40a8f
to
b171b3d
Compare
test failures unrelated 💚 |
merged, díky @xprazak2! |
Sorry I am late to the party, I love it. Thanks. |
Extracted from #5336.
It will be much more useful once we have GraphQL :)