mockDashboardState.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /* eslint-disable theme-colors/no-literal-colors */
  2. /**
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. import { sliceId } from './mockChartQueries';
  21. export default {
  22. sliceIds: [sliceId],
  23. expandedSlices: {},
  24. editMode: false,
  25. hasUnsavedChanges: false,
  26. maxUndoHistoryExceeded: false,
  27. isStarred: true,
  28. isPublished: true,
  29. css: '',
  30. focusedFilterField: null,
  31. refreshFrequency: 0,
  32. };
  33. export const overwriteConfirmMetadata = {
  34. updatedAt: '2022-10-07T16:35:30.924212',
  35. updatedBy: 'Superset Admin',
  36. overwriteConfirmItems: [
  37. {
  38. keyPath: 'css',
  39. oldValue: '',
  40. newValue: `
  41. .navbar {
  42. transition: opacity 0.5s ease;
  43. }
  44. `,
  45. },
  46. {
  47. keyPath: 'json_metadata.filter_scopes',
  48. oldValue: `{
  49. "122": {
  50. "ethnic_minority": {
  51. "scope": ["ROOT_ID"],
  52. "immune": []
  53. },
  54. "gender": {
  55. "scope": ["ROOT_ID"],
  56. "immune": []
  57. },
  58. "developer_type": {
  59. "scope": ["ROOT_ID"],
  60. "immune": []
  61. },
  62. "lang_at_home": {
  63. "scope": ["ROOT_ID"],
  64. "immune": []
  65. },
  66. "country_live": {
  67. "scope": ["ROOT_ID"],
  68. "immune": []
  69. }
  70. }
  71. }`,
  72. newValue: `{
  73. "122": {
  74. "ethnic_minority": {
  75. "scope": ["ROOT_ID"],
  76. "immune": [
  77. 131,
  78. 115,
  79. 123,
  80. 89,
  81. 94,
  82. 71
  83. ]
  84. },
  85. "gender": {
  86. "scope": ["ROOT_ID"],
  87. "immune": []
  88. },
  89. "developer_type": {
  90. "scope": ["ROOT_ID"],
  91. "immune": []
  92. },
  93. "lang_at_home": {
  94. "scope": ["ROOT_ID"],
  95. "immune": []
  96. },
  97. "country_live": {
  98. "scope": ["ROOT_ID"],
  99. "immune": []
  100. }
  101. }
  102. }`,
  103. },
  104. ],
  105. dashboardId: 9,
  106. data: {
  107. certified_by: '',
  108. certification_details: '',
  109. css: ".navbar {\n transition: opacity 0.5s ease;\n opacity: 0.05;\n}\n.navbar:hover {\n opacity: 1;\n}\n.chart-header .header{\n font-weight: @font-weight-normal;\n font-size: 12px;\n}\n/*\nvar bnbColors = [\n //rausch hackb kazan babu lima beach tirol\n '#ff5a5f', '#7b0051', '#007A87', '#00d1c1', '#8ce071', '#ffb400', '#b4a76c',\n '#ff8083', '#cc0086', '#00a1b3', '#00ffeb', '#bbedab', '#ffd266', '#cbc29a',\n '#ff3339', '#ff1ab1', '#005c66', '#00b3a5', '#55d12e', '#b37e00', '#988b4e',\n ];\n*/\n",
  110. dashboard_title: 'FCC New Coder Survey 2018',
  111. slug: null,
  112. owners: [],
  113. json_metadata:
  114. '{"timed_refresh_immune_slices":[],"expanded_slices":{},"refresh_frequency":0,"default_filters":"{}","color_scheme":"supersetColors","label_colors":{"0":"#FCC700","1":"#A868B7","15":"#3CCCCB","30":"#A38F79","45":"#8FD3E4","age":"#1FA8C9","Yes,":"#1FA8C9","Female":"#454E7C","Prefer":"#5AC189","No,":"#FF7F44","Male":"#666666","Prefer not to say":"#E04355","Ph.D.":"#FCC700","associate\'s degree":"#A868B7","bachelor\'s degree":"#3CCCCB","high school diploma or equivalent (GED)":"#A38F79","master\'s degree (non-professional)":"#8FD3E4","no high school (secondary school)":"#A1A6BD","professional degree (MBA, MD, JD, etc.)":"#ACE1C4","some college credit, no degree":"#FEC0A1","some high school":"#B2B2B2","trade, technical, or vocational training":"#EFA1AA","No, not an ethnic minority":"#1FA8C9","Yes, an ethnic minority":"#454E7C","<NULL>":"#5AC189","Yes":"#FF7F44","No":"#666666","last_yr_income":"#E04355","More":"#A1A6BD","Less":"#ACE1C4","I":"#FEC0A1","expected_earn":"#B2B2B2","Yes: Willing To":"#EFA1AA","No: Not Willing to":"#FDE380","No Answer":"#D3B3DA","In an Office (with Other Developers)":"#9EE5E5","No Preference":"#D1C6BC","From Home":"#1FA8C9"},"color_scheme_domain":["#1FA8C9","#454E7C","#5AC189","#FF7F44","#666666","#E04355","#FCC700","#A868B7","#3CCCCB","#A38F79","#8FD3E4","#A1A6BD","#ACE1C4","#FEC0A1","#B2B2B2","#EFA1AA","#FDE380","#D3B3DA","#9EE5E5","#D1C6BC"],"shared_label_colors":["Male", "Female","<NULL>","Prefer not to say","No Answer","Yes, an ethnic minority","No, not an ethnic minority","age"],"cross_filters_enabled":false,"filter_scopes":{},"chart_configuration":{},"positions":{}}',
  115. },
  116. };