Skip to content

Commit 3a7ab53

Browse files
committed
Update: Rename author to owner in models
- Cleaned up db table names
1 parent b8be86a commit 3a7ab53

72 files changed

Lines changed: 310 additions & 305 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/app/mirage/fixtures/dashboard-widgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default [
44
title: 'Kart Wins By Character',
55
createdOn: '1992-08-27 00:00:00',
66
updatedOn: '2017-04-28 00:00:00',
7-
authorId: 'navi_user',
7+
ownerId: 'navi_user',
88
dashboardId: 1,
99
visualization: {
1010
type: 'line-chart',

packages/app/mirage/fixtures/dashboard.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ export default [
66
{
77
id: 1,
88
title: 'Coin Health Check',
9-
authorId: 'navi_user',
9+
ownerId: 'navi_user',
1010
createdOn: '2016-01-01 00:00:00',
1111
updatedOn: '2016-01-01 00:00:00',
1212
presentation: {
1313
version: 1,
1414
layout: [{ column: 0, row: 0, height: 4, width: 12, widgetId: 1 }],
15-
columns: 12
16-
}
15+
columns: 12,
16+
},
1717
},
1818
{
1919
id: 2,
2020
title: 'Leaderboard',
21-
authorId: 'navi_user',
21+
ownerId: 'navi_user',
2222
createdOn: '2016-01-01 00:00:00',
2323
updatedOn: '2016-01-01 00:00:00',
2424
presentation: {
2525
version: 1,
2626
layout: [],
27-
columns: 12
28-
}
29-
}
27+
columns: 12,
28+
},
29+
},
3030
];

packages/app/mirage/fixtures/reports.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default [
88
title: 'Kart Wins By Character',
99
createdOn: '1992-08-27 00:00:00',
1010
updatedOn: '2017-04-28 00:00:00',
11-
authorId: 'navi_user',
11+
ownerId: 'navi_user',
1212
visualization: {
1313
type: 'line-chart',
1414
version: 1,
@@ -69,7 +69,7 @@ export default [
6969
title: 'Top Played Games',
7070
createdOn: '1992-08-27 00:00:00',
7171
updatedOn: '2017-04-28 00:00:00',
72-
authorId: 'navi_user',
72+
ownerId: 'navi_user',
7373
visualization: {
7474
type: 'line-chart',
7575
version: 1,
@@ -136,7 +136,7 @@ export default [
136136
title: 'Coin Counts',
137137
createdOn: '1992-08-27 00:00:00',
138138
updatedOn: '2017-04-28 00:00:00',
139-
authorId: 'navi_user',
139+
ownerId: 'navi_user',
140140
visualization: {
141141
type: 'line-chart',
142142
version: 1,

packages/core/addon/mirage/fixtures/dashboard-widget.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default [
22
{
33
id: 1,
44
dashboardId: 1,
5-
authorId: 'navi_user',
5+
ownerId: 'navi_user',
66
title: 'Mobile DAU Goal',
77
visualization: {
88
type: 'goal-gauge',
@@ -38,7 +38,7 @@ export default [
3838
{
3939
id: 2,
4040
dashboardId: 1,
41-
authorId: 'navi_user',
41+
ownerId: 'navi_user',
4242
title: 'Mobile DAU Graph',
4343
visualization: {
4444
type: 'line-chart',
@@ -81,7 +81,7 @@ export default [
8181
{
8282
id: 3,
8383
dashboardId: 1,
84-
authorId: 'navi_user',
84+
ownerId: 'navi_user',
8585
title: 'Mobile DAU Table',
8686
visualization: {
8787
type: 'table',
@@ -136,7 +136,7 @@ export default [
136136
{
137137
id: 4,
138138
dashboardId: 2,
139-
authorId: 'navi_user',
139+
ownerId: 'navi_user',
140140
title: 'Clicks',
141141
visualization: {
142142
type: 'line-chart',
@@ -179,7 +179,7 @@ export default [
179179
{
180180
id: 5,
181181
dashboardId: 2,
182-
authorId: 'navi_user',
182+
ownerId: 'navi_user',
183183
title: 'Last Week By OS',
184184
visualization: {
185185
type: 'table',
@@ -234,7 +234,7 @@ export default [
234234
{
235235
id: 6,
236236
dashboardId: 4,
237-
authorId: 'ciela',
237+
ownerId: 'ciela',
238238
title: 'Clicks',
239239
visualization: {
240240
type: 'line-chart',
@@ -277,7 +277,7 @@ export default [
277277
{
278278
id: 7,
279279
dashboardId: 6,
280-
authorId: 'ciela',
280+
ownerId: 'ciela',
281281
title: 'Sale Contribution Value',
282282
visualization: {
283283
type: 'line-chart',
@@ -321,7 +321,7 @@ export default [
321321
{
322322
id: 8,
323323
dashboardId: 6,
324-
authorId: 'navi_user',
324+
ownerId: 'navi_user',
325325
title: 'Mobile DAU Goal',
326326
visualization: {
327327
type: 'goal-gauge',
@@ -357,7 +357,7 @@ export default [
357357
{
358358
id: 9,
359359
dashboardId: 6,
360-
authorId: 'navi_user',
360+
ownerId: 'navi_user',
361361
title: 'Mobile DAU Graph',
362362
visualization: {
363363
type: 'line-chart',
@@ -401,7 +401,7 @@ export default [
401401
{
402402
id: 10,
403403
dashboardId: 7,
404-
authorId: 'navi_user',
404+
ownerId: 'navi_user',
405405
title: 'Datasource error',
406406
visualization: {
407407
type: 'line-chart',
@@ -468,7 +468,7 @@ export default [
468468
title: 'Mobile DAU Goal',
469469
dashboardId: 7,
470470
id: 11,
471-
authorId: 'navi_user',
471+
ownerId: 'navi_user',
472472
visualization: {
473473
type: 'goal-gauge',
474474
version: 2,

packages/core/addon/mirage/fixtures/dashboard.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default [
22
{
33
id: 1,
44
title: 'Tumblr Goals Dashboard',
5-
authorId: 'navi_user',
5+
ownerId: 'navi_user',
66
dashboardWidgetIds: [1, 2, 3],
77
createdOn: '2016-01-01 00:00:00',
88
updatedOn: '2016-01-01 00:00:00',
@@ -20,7 +20,7 @@ export default [
2020
{
2121
id: 2,
2222
title: 'Dashboard 2',
23-
authorId: 'navi_user',
23+
ownerId: 'navi_user',
2424
dashboardWidgetIds: [4, 5],
2525
createdOn: '2016-02-01 00:00:00',
2626
updatedOn: '2016-02-01 00:00:00',
@@ -63,7 +63,7 @@ export default [
6363
{
6464
id: 3,
6565
title: 'Dashboard 3',
66-
authorId: 'ciela',
66+
ownerId: 'ciela',
6767
dashboardWidgetIds: [],
6868
createdOn: '2016-01-03 00:00:00',
6969
updatedOn: '2016-01-03 00:00:00',
@@ -77,7 +77,7 @@ export default [
7777
{
7878
id: 4,
7979
title: 'Revenue Dashboard',
80-
authorId: 'ciela',
80+
ownerId: 'ciela',
8181
dashboardWidgetIds: [6],
8282
createdOn: '2016-01-01 00:00:00',
8383
updatedOn: '2016-01-01 00:00:00',
@@ -99,7 +99,7 @@ export default [
9999
{
100100
id: 5,
101101
title: 'Empty Dashboard',
102-
authorId: 'navi_user',
102+
ownerId: 'navi_user',
103103
dashboardWidgetIds: [],
104104
createdOn: '2016-01-01 03:00:00',
105105
updatedOn: '2016-01-01 03:00:00',
@@ -113,7 +113,7 @@ export default [
113113
{
114114
id: 6,
115115
title: 'Multi Source Dashboard',
116-
authorId: 'navi_user',
116+
ownerId: 'navi_user',
117117
dashboardWidgetIds: [7, 8, 9],
118118
createdOn: '2016-01-01 03:00:00',
119119
updatedOn: '2016-01-01 03:00:00',
@@ -135,7 +135,7 @@ export default [
135135
{
136136
id: 7,
137137
title: 'Datasource Error Dashboard',
138-
authorId: 'navi_user',
138+
ownerId: 'navi_user',
139139
createdOn: '2016-01-01 03:00:00',
140140
updatedOn: '2016-01-01 03:00:00',
141141
deliveryRuleIds: [],

packages/core/addon/mirage/fixtures/report-collections.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ export default [
99
{
1010
id: 1,
1111
title: 'Report Collection 1',
12-
authorId: 'navi_user',
12+
ownerId: 'navi_user',
1313
createdOn: '2017-01-01 00:00:00',
1414
updatedOn: '2017-01-01 00:00:00',
1515
reportIds: [1, 3],
1616
},
1717
{
1818
id: 2,
1919
title: 'Report Collection 2',
20-
authorId: 'ciela',
20+
ownerId: 'ciela',
2121
createdOn: '2017-01-01 00:00:00',
2222
updatedOn: '2017-01-01 00:00:00',
2323
reportIds: [2, 4],
2424
},
2525
{
2626
id: 3,
2727
title: 'Report Collection 3',
28-
authorId: 'navi_user',
28+
ownerId: 'navi_user',
2929
createdOn: '2019-01-01 00:00:00',
3030
updatedOn: '2019-01-01 00:00:00',
3131
reportIds: [1],

packages/core/addon/mirage/fixtures/reports.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default [
1010
title: 'Hyrule News',
1111
createdOn: '2015-01-01 00:00:00',
1212
updatedOn: '2015-01-01 00:00:00',
13-
authorId: 'navi_user',
13+
ownerId: 'navi_user',
1414
deliveryRuleIds: [],
1515
visualization: {
1616
type: 'line-chart',
@@ -64,7 +64,7 @@ export default [
6464
title: 'Hyrule Ad&Nav Clicks',
6565
createdOn: '2016-04-01 11:00:00',
6666
updatedOn: '2016-04-01 11:00:00',
67-
authorId: 'navi_user',
67+
ownerId: 'navi_user',
6868
deliveryRuleIds: [],
6969
visualization: {
7070
type: 'table',
@@ -129,7 +129,7 @@ export default [
129129
title: 'Report 123',
130130
createdOn: '2015-01-01 02:00:00',
131131
updatedOn: '2015-01-01 02:00:00',
132-
authorId: 'ciela',
132+
ownerId: 'ciela',
133133
deliveryRuleIds: [1],
134134
visualization: {
135135
type: 'table',
@@ -178,7 +178,7 @@ export default [
178178
title: 'Report 12',
179179
createdOn: '2015-01-03 00:00:00',
180180
updatedOn: '2015-01-03 00:00:00',
181-
authorId: 'navi_user',
181+
ownerId: 'navi_user',
182182
deliveryRuleIds: [2],
183183
visualization: {
184184
type: 'line-chart',
@@ -220,7 +220,7 @@ export default [
220220
title: 'Null Visualization',
221221
createdOn: '2015-07-01 00:00:00',
222222
updatedOn: '2015-07-01 00:00:00',
223-
authorId: 'navi_user',
223+
ownerId: 'navi_user',
224224
deliveryRuleIds: [],
225225
visualization: {
226226
type: 'table',
@@ -269,7 +269,7 @@ export default [
269269
title: 'Invalid report',
270270
createdOn: '2015-04-01 00:00:00',
271271
updatedOn: '2015-04-01 00:00:00',
272-
authorId: 'navi_user',
272+
ownerId: 'navi_user',
273273
deliveryRuleIds: [],
274274
visualization: null,
275275
request: {
@@ -287,7 +287,7 @@ export default [
287287
title: 'Revenue report 1',
288288
createdOn: '2015-01-01 00:00:00',
289289
updatedOn: '2015-01-01 00:00:00',
290-
authorId: 'ciela',
290+
ownerId: 'ciela',
291291
deliveryRuleIds: [],
292292
visualization: {
293293
type: 'table',
@@ -337,7 +337,7 @@ export default [
337337
title: 'Revenue report 2',
338338
createdOn: '2015-03-01 00:00:00',
339339
updatedOn: '2015-03-01 00:00:00',
340-
authorId: 'navi_user',
340+
ownerId: 'navi_user',
341341
deliveryRuleIds: [],
342342
visualization: {
343343
type: 'table',
@@ -407,7 +407,7 @@ export default [
407407
title: 'Report with unknown table',
408408
createdOn: '2015-02-01 00:00:00',
409409
updatedOn: '2015-02-01 00:00:00',
410-
authorId: 'navi_user',
410+
ownerId: 'navi_user',
411411
deliveryRuleIds: [],
412412
visualization: {
413413
type: 'table',
@@ -457,7 +457,7 @@ export default [
457457
title: 'Report with missing intervals',
458458
createdOn: '2018-01-01 00:00:00',
459459
updatedOn: '2018-01-01 00:00:00',
460-
authorId: 'navi_user',
460+
ownerId: 'navi_user',
461461
deliveryRuleIds: [],
462462
visualization: {
463463
type: 'line-chart',
@@ -499,7 +499,7 @@ export default [
499499
title: 'old report without params',
500500
createdOn: '2015-01-01 00:00:00',
501501
updatedOn: '2015-01-01 00:00:00',
502-
authorId: 'navi_user',
502+
ownerId: 'navi_user',
503503
deliveryRuleIds: [],
504504
visualization: {
505505
type: 'table',
@@ -556,7 +556,7 @@ export default [
556556
title: 'Report for different datasource',
557557
createdOn: '2020-01-01 00:00:00',
558558
updatedOn: '2020-01-01 00:00:00',
559-
authorId: 'navi_user',
559+
ownerId: 'navi_user',
560560
deliveryRuleIds: [],
561561
visualization: {
562562
type: 'table',
@@ -645,7 +645,7 @@ export default [
645645
title: 'RequestV2 testing report',
646646
createdOn: '2015-04-01 00:00:00',
647647
updatedOn: '2015-04-01 00:00:00',
648-
authorId: 'navi_user',
648+
ownerId: 'navi_user',
649649
deliveryRuleIds: [],
650650
visualization: {
651651
type: 'table',
@@ -704,7 +704,7 @@ export default [
704704
title: 'RequestV2 multi-param testing report',
705705
createdOn: '2015-04-01 00:00:00',
706706
updatedOn: '2015-04-01 00:00:00',
707-
authorId: 'navi_user',
707+
ownerId: 'navi_user',
708708
deliveryRuleIds: [],
709709
visualization: {
710710
type: 'table',
@@ -763,10 +763,10 @@ export default [
763763
},
764764
{
765765
id: 15,
766-
title: 'Unauthorized',
766+
title: 'Unownerized',
767767
createdOn: '2015-04-01 00:00:00',
768768
updatedOn: '2015-04-01 00:00:00',
769-
authorId: 'navi_user',
769+
ownerId: 'navi_user',
770770
deliveryRuleIds: [],
771771
visualization: {
772772
type: 'table',

0 commit comments

Comments
 (0)