mockDashboardInfo.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. import { FilterBarOrientation } from 'src/dashboard/types';
  20. export default {
  21. id: 1234,
  22. slug: 'dashboardSlug',
  23. metadata: {
  24. native_filter_configuration: [
  25. {
  26. id: 'DefaultsID',
  27. filterType: 'filter_select',
  28. chartsInScope: [],
  29. targets: [{}],
  30. cascadeParentIds: [],
  31. },
  32. ],
  33. },
  34. changed_on_delta_humanized: '7 minutes ago',
  35. changed_by: {
  36. id: 3,
  37. first_name: 'John',
  38. last_name: 'Doe',
  39. },
  40. created_on_delta_humanized: '10 days ago',
  41. created_by: {
  42. id: 2,
  43. first_name: 'Kay',
  44. last_name: 'Mon',
  45. },
  46. owners: [{ first_name: 'John', last_name: 'Doe', id: 1 }],
  47. userId: 'mock_user_id',
  48. dash_edit_perm: true,
  49. dash_save_perm: true,
  50. common: {
  51. conf: { SUPERSET_WEBSERVER_TIMEOUT: 60 },
  52. },
  53. filterBarOrientation: FilterBarOrientation.Vertical,
  54. };