FarmBot / FarmBot/Farmbot-Web-App

Auto Sync Messages Trigger Error in Read-Only Mode

Open
#1,352 0 comments 0 reactions 0 assignees View on GitHub
bug wont fix
Dominant language
TypeScript
Stars
973
Forks
356
Avg merge
1h 6m
Merged PRs (30d)
3

Description

# Expected Behavior

* Frontend should silently update data in the background (example: FBOS modifying `Point` resource via `mark_as`).

# Actual Behavior

* Toast pops up telling the user they can't modify data in read-only mode.

# Steps to Reproduce

* Open app in read-only mode
* Modify a resource outside of the frontend (`rails c` or direct API access).
* Observe unexpected error `toast` message.
* Relevant code: https://github.com/FarmBot/Farmbot-Web-App/blob/staging/frontend/resources/reducer_support.ts#L287-L289

# Results of `git log -1`
```
Author: Rick Carlino
Date: Mon Aug 5 14:59:55 2019 -0500

Done with backend implementation. NEXT: Frontend resource loading and FBJS interfaces.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.