Debug removal
parent
a475c38fc9
commit
86497b5187
1
Gemfile
1
Gemfile
|
@ -39,7 +39,6 @@ group :development, :test do
|
|||
gem "rspec"
|
||||
gem "simplecov"
|
||||
gem "smarf_doc", git: "https://github.com/RickCarlino/smarf_doc.git"
|
||||
gem "immigrant"
|
||||
end
|
||||
|
||||
group :production do
|
||||
|
|
|
@ -83,8 +83,10 @@ module Api
|
|||
|
||||
def clean_expired_farm_events
|
||||
FarmEvents::CleanExpired.run!(device: current_device)
|
||||
# TODO: Why does this even exist? This should
|
||||
# be fixable via foreign key constraints. - RC 4 OCT 19
|
||||
# TODO: The app is leaking `Fragment` records, creating
|
||||
# orphaned DB entries. This should be fixable via
|
||||
# ActiveRecord config. Most likely a misconfiguration.
|
||||
# - RC 4 OCT 19
|
||||
Fragment.remove_old_fragments_for_device(current_device)
|
||||
end
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ module PointGroups
|
|||
def fragment_users
|
||||
if @fragment_users
|
||||
@fragment_users
|
||||
else
|
||||
else # TODO: Create SQL view to increase performance. - RC 8 OCT 19
|
||||
my_fragment_ids = Fragment
|
||||
.where(device_id: device.id)
|
||||
.pluck(:id)
|
||||
|
|
|
@ -31,10 +31,8 @@ export function routeMqttData(chan: string, payload: Buffer):
|
|||
const { body, args } = decodeBinary(payload);
|
||||
|
||||
if (body) {
|
||||
console.log("@UPDATE@ " + (kind || "?"));
|
||||
return { status: "UPDATE", body, kind: kind, id, sessionId: args.label };
|
||||
} else {
|
||||
console.log("@DELETE@ " + (kind || "?"));
|
||||
return { status: "DELETE", kind: kind, id }; // 'null' body means delete.
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +83,6 @@ export function handleCreateOrUpdate(dispatch: Function,
|
|||
export const autoSync =
|
||||
(dispatch: Function, getState: GetState) => {
|
||||
return (chan: string, payload: Buffer) => {
|
||||
console.log("Hmmm " + chan);
|
||||
handleInbound(dispatch, getState, routeMqttData(chan, payload));
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,8 +2,7 @@ import * as React from "react";
|
|||
import { PointGroupSortType } from "farmbot/dist/resources/api_resources";
|
||||
import {
|
||||
FBSelect,
|
||||
DropDownItem,
|
||||
// ToolTip
|
||||
DropDownItem
|
||||
} from "../../ui";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
import { trim } from "../../util/util";
|
||||
|
@ -57,7 +56,6 @@ export function PointGroupSortSelector(p: Props) {
|
|||
return <div>
|
||||
<div className="default-value-tooltip">
|
||||
<label>
|
||||
{/* CSS IS HARD - RC <ToolTip helpText={t(HELP_TEXT)} /> */}
|
||||
{t("SORT BY")}
|
||||
</label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue