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

history page does not update after clearing history #562

Closed
opheliagame opened this issue Feb 10, 2025 · 2 comments · Fixed by #563 or #569
Closed

history page does not update after clearing history #562

opheliagame opened this issue Feb 10, 2025 · 2 comments · Fixed by #563 or #569
Labels
bug Something isn't working

Comments

@opheliagame
Copy link
Contributor

Describe the bug/problem

The history page does not update itself after having successfully cleared the history in hive box

Steps to Reproduce the bug/problem

  • make some requests
  • go to history page, confirm your requests are being displayed, confirm the size of hive box in local file system (will be more than 0 bytes)
  • click on Clear History button
  • confirm the size of hive box again. this time it will be 0 bytes but the history page will still be showing all your requests shown previously

Expected behavior

  • make some requests
  • go to history page and see them
  • clicking on Clear History button should update the page to clear all requests

Device Info (The device where you encountered this issue)

  • OS: MacOS
  • Version: 15.2(24C101)
  • Browser NA

Flutter Doctor

Please run the flutter doctor -v command and provide the details below:

[✓] Flutter (Channel stable, 3.27.4, on macOS 15.2 24C101 darwin-arm64, locale ja-JP)
    • Flutter version 3.27.4 on channel stable at /Users/anushkatrivedi/fvm/versions/3.27.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d8a9f9a52e (9 days ago), 2025-01-31 16:07:18 -0500
    • Engine revision 82bd5b7209
    • Dart version 3.6.2
    • DevTools version 2.40.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/anushkatrivedi/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/anushkatrivedi/.sdkman/candidates/java/17.0.11-tem/bin/java
    • Java version OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] VS Code (version 1.96.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • Anushka TrivediのiPad (mobile)   • 00008101-001251203432001E • ios            • iOS 18.3
      22D63
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.2
      24C101 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.2
      24C101 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google
      Chrome 132.0.6834.160

[✓] Network resources
    • All expected network resources are available.

• No issues found!


2025-02-10.8.59.30.mov
@opheliagame
Copy link
Contributor Author

@ashitaprasad
I have made a PR with a solution for this issue so you can have a look :)

nope3472 added a commit to nope3472/apidash that referenced this issue Feb 12, 2025
@nope3472 nope3472 mentioned this issue Feb 12, 2025
7 tasks
@nope3472
Copy link
Contributor

@ashitaprasad
Fixed: Clear History Issue (Closes #562)

I have resolved the issue where clicking "Clear History" caused a HiveError: Box has already been closed.
Now, the history clears properly without errors.

https://github.com/user-attachments/assets/7b97a3d1-89dc-42e6-810b-3760e7752274
Take a look and let me know if any changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants