Skip to content

FEATURE: Allow editing grouping pattern before submitting#263

Merged
pmusaraj merged 8 commits into
mainfrom
edit-grouping-pattern-before-storing
Apr 30, 2026
Merged

FEATURE: Allow editing grouping pattern before submitting#263
pmusaraj merged 8 commits into
mainfrom
edit-grouping-pattern-before-storing

Conversation

@pmusaraj
Copy link
Copy Markdown
Contributor

@pmusaraj pmusaraj commented Apr 29, 2026

Shows an editable pattern in a dialog before submitting when grouping from the main logs page.

image

Had to make a few unrelated changes to fix linting and test runs.

Comment thread Rakefile
spawn(
"cd website && LOGSTER_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec rackup --host 0.0.0.0",
)
pid = spawn("cd website && LOGSTER_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec puma")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rackup is no longer shipped with rack, the recommendation is to stop relying on it in libraries: https://github.com/rack/rackup#soft-deprecation

Comment thread Gemfile Outdated

group :development, :test do
gem "rails", ">= 6.1"
gem "rubocop-capybara", "< 2.23.0"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread test/test_helper.rb
require "minitest/autorun"
require "minitest/pride"

module StubSupport
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Needed due to upstream changes in minitest.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we'll need to do some cleanup of logster codebase at some point 😅

Comment thread lib/logster/message.rb
def to_json(opts = nil)
exclude_env = Hash === opts && opts.delete(:exclude_env)
JSON.fast_generate(to_h(exclude_env: exclude_env), opts)
JSON.generate(to_h(exclude_env: exclude_env), opts)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

JSON.fast_generate triggered deprecation notices in test runs.

Comment thread test/test_helper.rb
require "minitest/autorun"
require "minitest/pride"

module StubSupport
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we'll need to do some cleanup of logster codebase at some point 😅

@pmusaraj pmusaraj merged commit a5cab13 into main Apr 30, 2026
15 checks passed
@pmusaraj pmusaraj deleted the edit-grouping-pattern-before-storing branch April 30, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants