mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
feat(project): remove outdated model
This commit is contained in:
parent
b75dc191dc
commit
8a24bffee6
4 changed files with 7 additions and 13 deletions
|
|
@ -125,7 +125,7 @@ export type GlobalConfigState = Readonly<{
|
|||
pomodoro: PomodoroConfig;
|
||||
googleDriveSync: GoogleDriveSyncConfig;
|
||||
keyboard: KeyboardConfig;
|
||||
localBackup: LocalBackupConfig,
|
||||
localBackup: LocalBackupConfig;
|
||||
_googleSession: GoogleSession;
|
||||
}>;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ import {Dictionary} from '@ngrx/entity';
|
|||
import {Project} from './project.model';
|
||||
import {DEFAULT_PROJECT} from './project.const';
|
||||
import {DEFAULT_ISSUE_PROVIDER_CFGS, issueProviderKeys} from '../issue/issue.const';
|
||||
import {getWorklogStr} from '../../util/get-work-log-str';
|
||||
import {getYesterdaysDate} from '../../util/get-yesterdays-date';
|
||||
import {MODEL_VERSION_KEY, THEME_COLOR_MAP, WORKLOG_DATE_STR_FORMAT} from '../../app.constants';
|
||||
import {isMigrateModel} from '../../util/model-version';
|
||||
import * as moment from 'moment';
|
||||
|
|
@ -13,6 +11,7 @@ import {LS_ISSUE_STATE, LS_PROJECT_PREFIX} from '../../core/persistence/ls-keys.
|
|||
import {IssueProviderKey} from '../issue/issue.model';
|
||||
import * as localForage from 'localforage';
|
||||
import {WORK_CONTEXT_DEFAULT_THEME} from '../work-context/work-context.const';
|
||||
import {dirtyDeepCopy} from '../../util/dirtyDeepCopy';
|
||||
|
||||
const MODEL_VERSION = 4;
|
||||
|
||||
|
|
@ -55,13 +54,11 @@ const _extendProjectDefaults = (project: Project): Project => {
|
|||
};
|
||||
|
||||
const _removeOutdatedData = (project: Project): Project => {
|
||||
return project;
|
||||
|
||||
// TODO use this after a some period to give people time to complain about the missing feature
|
||||
// const copy: any = dirtyDeepCopy(project);
|
||||
// delete copy.advancedCfg.googleTimeSheetExport;
|
||||
// delete copy.advancedCfg.simpleSummarySettings;
|
||||
// return copy;
|
||||
const copy: any = dirtyDeepCopy(project);
|
||||
delete copy.advancedCfg.googleTimeSheetExport;
|
||||
delete copy.advancedCfg.simpleSummarySettings;
|
||||
delete copy.timeWorkedWithoutBreak;
|
||||
return copy;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ export const DEFAULT_PROJECT: Project = {
|
|||
title: '',
|
||||
themeColor: '',
|
||||
isArchived: false,
|
||||
// TODO move to global cfg
|
||||
timeWorkedWithoutBreak: null,
|
||||
issueIntegrationCfgs: DEFAULT_ISSUE_PROVIDER_CFGS,
|
||||
taskIds: [],
|
||||
backlogTaskIds: [],
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ export interface ProjectBasicCfg {
|
|||
/** @deprecated use new theme model instead. */
|
||||
isReducedTheme?: boolean;
|
||||
isArchived: boolean;
|
||||
timeWorkedWithoutBreak: number;
|
||||
|
||||
taskIds: string[];
|
||||
backlogTaskIds: string[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue