Debug removal

pull/1492/head
Rick Carlino 2019-10-08 10:08:52 -05:00
parent a475c38fc9
commit 86497b5187
5 changed files with 6 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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));
};
};

View File

@ -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>