# OOD 2: dashboard layout configuration and p2p app sharing?

**URL:** <https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555>\
**Category:** Get Help\
**Tags:** ondemand2, question\
**Created:** [June 22, 2021, 6:43pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555 "2021-06-22T18:43:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [June 22, 2021, 6:43pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/1 "2021-06-22T18:43:46Z")

</div>

It seems that the p2p app sharing (enabled in …/apps/dashboard/env) overrides the new dashboard layout control features. Is there a way to implement both?

Thanks

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [June 22, 2021, 7:08pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/2 "2021-06-22T19:08:24Z")

</div>

Thank you for the reminder! We haven’t begun to migrate our sharing site quite yet so this got dropped a bit. A thousand apologies! I’ve created this ticket for the same.

> <https://github.com/OSC/ondemand/issues/1243>
>
> We still have this override to the root if user sharing is enabled. So if a site… wants to pin other apps or change the layout and share apps - they can't.
> 
> https://github.com/OSC/ondemand/blob/7eb6ca7066af484e1fd2360109ad91181861f26b/apps/dashboard/config/routes.rb#L50-L57
> 
> It also seems like there's some backward comparability footwork here. If they enable user sharing it should look like it does now without having to configure pinned apps (and pinned apps group by).

I believe if you configure

```auto
pinned_apps:
 - usr/*

pinned_apps_group_by: category

```

And remove (or comment) these 3 lines

> <https://github.com/OSC/ondemand/blob/7eb6ca7066af484e1fd2360109ad91181861f26b/apps/dashboard/config/routes.rb#L54-L56>

from `/var/www/ood/apps/sys/dashboard/config/routes.rb` it should start to work for you.

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [June 22, 2021, 10:55pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/3 "2021-06-22T22:55:44Z")

</div>

Hi, Jeff –

Thanks for sharing these ideas. Commenting out the lines in ‘routes.rb’ seems to be sensitive to the settings in …/ondemand.d/ondemand.yml. I perhaps am not sure what to do with the pinned\_apps\_group\_by:’ I’ve implemented the suggestions for ondemand.yml as follows :

pinned\_apps:

- type: sys  
category: ‘Interactive Apps’
- type: usr/\*  
pinned\_apps\_group\_by: category  
dashboard\_layout:  
rows:
  - columns:
    - width: 12  
widgets:
      - pinned\_apps: 4

  - columns:
    - width: 12  
widgets: [‘motd’]

I’ve tried some variations on the above that break the PUN, and so am running nginx\_clean against my user account quite often.

I’m clearly not in command of the ideas for setting configurations. I’m also still working on a test setup, so have the luxury to break things good, if that would advance my learning curve.

Best

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [June 23, 2021, 2:07pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/4 "2021-06-23T14:07:57Z")

</div>

I appreciate your patience while we work through this! I’m working to fix this bug this week.

The `pinned_apps_group_by` you can toggle (bomment/disable) when you get pinned apps working, you’ll see the difference clearly.

As to variations that break the PUN, that shouldn’t be. If you happen to save a configuration that consistently breaks for you (I’ll try this one you’ve provided) let me know as there could be some issue you’ve uncovered.

I can’t tell if the yaml formatting here is off, let’s assume that is isn’t. I think you have a slight error here in `pinned_apps: 4`. The widgets element is an array of widget names (strings). That it’s defined as a key value pair could be throwing you off. I’ve modified it below to be the same as the motd column.

```auto
pinned_apps:
- type: sys
  category: 'Interactive Apps'

- type: 'usr/*'

pinned_apps_group_by: category

dashboard_layout:
  rows:
    - columns:
        - width: 12
          widgets: ['pinned_apps']
    - columns:
        - width: 12
          widgets: ['motd']

```

Arrays can be defined both ways here in YAML. Both is OK. For my taste I like `-`, but just me, the only thing I’d really stress is consistency.

```auto
    - columns:
        - width: 12
          widgets: ['motd']

```

and

```auto
    - columns:
        - width: 12
          widgets:
            - 'motd'

```

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [June 29, 2021, 5:59pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/5 "2021-06-29T17:59:19Z")

</div>

I’ve published `2.0.11` which will have the same change. Sites that use app sharing like yours will have to enable these 2 settings to have some parity.

```auto
pinned_apps:
- "usr/*"

pinned_apps_group_by: category

```

Were you able to sort out the dashboard layout issues @emily.dragowsky ?

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [June 30, 2021, 10:21pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/6 "2021-06-30T22:21:09Z")

</div>

Thanks, Jeff. I wish I could be sure. Concerning:

```auto
pinned_apps:
- "usr/*"

pinned_apps_group_by: category

```

It seems now that I have p2p sharing configured on my test server, with the same gateways set on the test server as on the production server, I cannot affected the p2p shared layout through ondemand.d/ondemand.yml These p2p apps persist, whether I have commented out the lines or not.

The test server has 2.0.10 installed.  
I’m going to be away for about two weeks. I have been pretty thorough checking this out this afternoon, but have possibly missed something. I’ll look for 2.0.11 when I get back, and try this all again.

Thanks!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [July 20, 2021, 2:37pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/7 "2021-07-20T14:37:09Z")

</div>

Those 2 weeks flew by! We just published 2.0.13 which has this fix so you don’t have to hack the production dashboard.

You will however continue to require the configuration you’ve listed above to have layout parity. I mean, we won’t show the p2p icons by default - you’ll have to pin and group them by those configuration items to have a layout like 1.8-.

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [July 20, 2021, 4:00pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/8 "2021-07-20T16:00:07Z")

</div>

Thanks, Jeff – Great news, much appreciated.  
~ Em

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:42pm UTC](https://discourse.openondemand.org/t/ood-2-dashboard-layout-configuration-and-p2p-app-sharing/1555/9 "2022-05-26T15:42:50Z")

</div>


