StatTag / StatWrap

StatWrap
https://sites.northwestern.edu/statwrap/
MIT License
1 stars 10 forks source link

Offline projects that go online #130

Open lrasmus opened 1 year ago

lrasmus commented 1 year ago

Currently if a project (typically on a network share) is unavailable ("offline") when StatWrap loads, it displays the offline icon. The user may click on the project, although tabs do not show information (showing that things are just unavailable). Currently you need to manually refresh the worklist to see the project come online.

We need to handle the scenario that when StatWrap is open and a project is offline, when you click on the project in the StatWrap project list it attempts to connect to the project folder, refreshes the status in the worklist, and allows you to navigate the various tabs.

Setup required to reproduce:

  1. Connect to a network drive
  2. In StatWrap, click "+" next to "Projects" from the main screen
  3. Either select "New Project" and create a new project on the network drive, or select "Existing Directory" and select a project from the network drive

Steps to reproduce once setup is done:

  1. Ensure StatWrap is closed
  2. Disconnect from the network drive
  3. Open StatWrap - confirm the project shows as "offline" in your list of projects
  4. Reconnect to the network drive
  5. Although the project path is now accessible, StatWrap still shows the project as "offline"
Abhijay007 commented 8 months ago

Hi @lrasmus can you please share steps to reproduce this issue?

lrasmus commented 8 months ago

Thanks @Abhijay007! Just added steps to reproduce. Please let me know if I can add more details.

Abhijay007 commented 8 months ago

Thanks @Abhijay007! Just added steps to reproduce. Please let me know if I can add more details.

Thanks @lrasmus for the details, I will look into the same and get back to you.

Abhijay007 commented 8 months ago

Thanks @Abhijay007! Just added steps to reproduce. Please let me know if I can add more details.

Hi @lrasmus, I followed all the steps you mentioned as per the instructions in the issue details provided by you, but I don't know why it is not showing the offline icon in the project list for me (find ref image below), can you please look into this? am I missing something here?

image

To be specific :

The step number three is not working as expected

  1. Ensure StatWrap is closed
  2. Disconnect from the network drive

3. Open StatWrap - confirm the project shows as "offline" in your list of projects

  1. Reconnect to the network drive
  2. Although the project path is now accessible, StatWrap still shows the project as "offline"
lrasmus commented 8 months ago

@Abhijay007 - I'm not sure how your network is set up for connecting to the shared drive. Would it be possible to have you disconnect from the network altogether? That would at least ensure you have no path to the network folder. That should display the "offline" icon. I tested locally and was able to get the offline icon.

image

Abhijay007 commented 8 months ago

@Abhijay007 - I'm not sure how your network is set up for connecting to the shared drive. Would it be possible to have you disconnect from the network altogether? That would at least ensure you have no path to the network folder. That should display the "offline" icon. I tested locally and was able to get the offline icon.

image

Thanks @lrasmus. I am able to reproduce the issue. I misunderstood the network drive as actually being the network (internet) 😅, looking into it now.