Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adds endpoints to debug what has been persisted#291

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
skrawcz wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromexpose_persister_endpoint

Conversation

@skrawcz
Copy link
Contributor

This I think will be useful for production debugging; what's in my state?

This assumes:

  1. You have the right dependencies with the server to load the right persister.
  2. Not all persisters load via the constructor, so you can use a classmethod to be called to instantiate it.
  3. Haven't exposed writing to state, but it's something we could do.

We'd probably want to couple this with a UI view.

Changes

  • server run.py with two endpoints
  • adds pydantic models returned

How I tested this

  • not extensively, but it seems to work.

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Anychange in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

This I think will be useful for production debugging; what's in my state?This assumes:1. You have the right dependencies with the server to load the right persister.2. Not all persisters load via the constructor, so you can use a classmethodto be called to instantiate it.3. Haven't exposed writing to state, but it's something we could do.We'd probably want to couple this with a UI view.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@elijahbenizzyelijahbenizzyAwaiting requested review from elijahbenizzy

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@skrawcz

[8]ページ先頭

©2009-2025 Movatter.jp