Commit 5bcf018
Issue 47144: Handle large files on Panorama Public via Symlinks (#344)
* - PanoramaPublicFileImporter logs to the job log, and throws an exception if any of the datafileurls could not be fixed.
- PanoramaPublicSymlinkManager.moveAndSymLinkDirectory takes a Logger parameter so the log output can go to the job log
- Added a PanoramaPublicMetadataImporter. I moved some of the code out of CopyExperimentFinalTask into this class. This creates a row in the panoramapublic.experimentannotations table. It runs before PanoramaPublicFileImporter so that if there is an error, e.g. datafileurls cannot be fixed, the container can be deleted to move files back to the source container.
- Updated test - import a document into a subfolder of the container file root.
* - Fire symlink update events only when file / container being moved / renamed / deleted is in the Panorama Public project. We don't expect folders in other projects to contain symlink targets.
- When handling folder rename (ContainerListener.propertyChange), pass the full paths of the old and renamed containers instead of just the folder names. Otherwise, it can lead to updating all symlinks that have the old folder name in the path.
- When deleting a folder, use ExperimentAnnotationsManager.getExperimentIncludesContainer(c) to lookup the experiment. This method will return the experiment that contains runs from the folder even if it is a subfolder of the folder where the experiment was created.
- When an experiment folder in Panorama Public is deleted, move the files back to next highest experiment version if one exists. Otherwise, move the files back to the source folder.
* Rework datafile alignment
* Scope datafile url to correct container
* Removed PanoramaPublicFileWriter.
* Limit the number of containers to look at when updating symlinks. This should only include the source container in the submitter's project as well as any containers with older versions of the data on Panorama Public.
* Remove code to lookup runs in the source container when aligning datafileUrls. This should not be required anymore due to LabKey/targetedms#724.
Set filePathRoot on the copied expRun to be the target container's file root.
Log error if the data file path is unexpected, i.e. it does not contain "Run<runid>"
Co-authored-by: vagisha <vagisha@gmail.com>
Co-authored-by: Josh Eckels <jeckels@labkey.com>
Co-authored-by: labkey-sweta <swetaj@labkey.com>1 parent 8fe5720 commit 5bcf018
File tree
20 files changed
+1722
-314
lines changed- panoramapublic
- src/org/labkey/panoramapublic
- pipeline
- query
- view/publish
- test/src/org/labkey/test/tests/panoramapublic
20 files changed
+1722
-314
lines changedLines changed: 58 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1499 | 1499 | | |
1500 | 1500 | | |
1501 | 1501 | | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
1502 | 1516 | | |
1503 | 1517 | | |
1504 | 1518 | | |
| |||
1539 | 1553 | | |
1540 | 1554 | | |
1541 | 1555 | | |
| 1556 | + | |
1542 | 1557 | | |
1543 | 1558 | | |
1544 | 1559 | | |
1545 | 1560 | | |
1546 | 1561 | | |
1547 | 1562 | | |
1548 | | - | |
| 1563 | + | |
| 1564 | + | |
1549 | 1565 | | |
1550 | 1566 | | |
1551 | 1567 | | |
| |||
1573 | 1589 | | |
1574 | 1590 | | |
1575 | 1591 | | |
| 1592 | + | |
1576 | 1593 | | |
1577 | 1594 | | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1578 | 1599 | | |
1579 | 1600 | | |
1580 | 1601 | | |
| |||
1586 | 1607 | | |
1587 | 1608 | | |
1588 | 1609 | | |
1589 | | - | |
| 1610 | + | |
1590 | 1611 | | |
| 1612 | + | |
1591 | 1613 | | |
1592 | 1614 | | |
1593 | 1615 | | |
1594 | 1616 | | |
| 1617 | + | |
1595 | 1618 | | |
1596 | 1619 | | |
1597 | 1620 | | |
| |||
1601 | 1624 | | |
1602 | 1625 | | |
1603 | 1626 | | |
1604 | | - | |
| 1627 | + | |
1605 | 1628 | | |
1606 | 1629 | | |
1607 | 1630 | | |
1608 | 1631 | | |
1609 | 1632 | | |
1610 | 1633 | | |
1611 | | - | |
| 1634 | + | |
1612 | 1635 | | |
1613 | 1636 | | |
| 1637 | + | |
| 1638 | + | |
1614 | 1639 | | |
1615 | 1640 | | |
1616 | 1641 | | |
1617 | 1642 | | |
1618 | | - | |
| 1643 | + | |
1619 | 1644 | | |
1620 | 1645 | | |
1621 | 1646 | | |
| |||
1683 | 1708 | | |
1684 | 1709 | | |
1685 | 1710 | | |
| 1711 | + | |
| 1712 | + | |
1686 | 1713 | | |
1687 | 1714 | | |
1688 | 1715 | | |
| |||
1696 | 1723 | | |
1697 | 1724 | | |
1698 | 1725 | | |
| 1726 | + | |
1699 | 1727 | | |
1700 | 1728 | | |
1701 | 1729 | | |
| |||
1819 | 1847 | | |
1820 | 1848 | | |
1821 | 1849 | | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
1822 | 1860 | | |
1823 | 1861 | | |
1824 | 1862 | | |
| |||
5626 | 5664 | | |
5627 | 5665 | | |
5628 | 5666 | | |
5629 | | - | |
| 5667 | + | |
5630 | 5668 | | |
5631 | 5669 | | |
5632 | 5670 | | |
| |||
9050 | 9088 | | |
9051 | 9089 | | |
9052 | 9090 | | |
| 9091 | + | |
| 9092 | + | |
| 9093 | + | |
| 9094 | + | |
| 9095 | + | |
| 9096 | + | |
| 9097 | + | |
| 9098 | + | |
| 9099 | + | |
| 9100 | + | |
| 9101 | + | |
| 9102 | + | |
| 9103 | + | |
| 9104 | + | |
9053 | 9105 | | |
9054 | 9106 | | |
9055 | 9107 | | |
| |||
Lines changed: 171 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments