Commit d76b2c4
485 public datasets visible when not logged in (#832)
* adding new file
* modal allows selecting public
* changing front end to allow changing to PUBLIC
* changing to public now works
* adding new routes for public datasets
* routers for public files and datasets added
download is available, though button will not work on page when added
* running codegen for new files
* running codegen for new files
* does not work right now
* small fixes, a few typos
* working now
* new direction if public
* adding PublicDataset
will probably need to refactor content from Dataset so that they can both import the same things, with 'publicView' as boolean that will determine what is shown
* fixing indents
* adding public folders
* error on folders and details
* folders do not show
details not working
* moving layout to new component
this should make having a public dataset easier
* public dataset view uses DatasetLayout now
* console logs, should remove later
* cannot read properties of undefined?
* cannot read properties of undefined?
* fix package lock
* error gone but with hardcoded limit,not sure why
* works now with limit
* this seemed to get rid of the error
* public view works, shows only public datasets
changes coming to PublicDataset need some refactoring of Dataset component
* fixing import, working on publicDataset component now
* files table has option for public now, will use different route
* publicactions menu added
removing tabs we don't use for public datasets
* new tab panel components
* removing unused components
* adding public file
* adding actions and states for public folders
gradually switching public views to use different states than private ones
* fixing package lock
* fixing wrong method called for public dataset details
we see file, some features removed that a public file should not have
* public file - no editing or modifying user metadata
* index now has authenticated and public
using booleans instead of statuses here for now, might change later
* adding public and authenticated to index
these will be used for searching later
* adding new routes for public search
from public pages, the search will only return stuff that is public
* adding tests
* sort of works
* using a status field rather than 2 booleans since both cannot be true
* tests pass for public datasets,
need tests for authenticated added
* adding public and authenticated to the user clause
* public no longer private router, but problems with layout
* errors on files, using new publicLayout for later
* public file actions
not tested yet,
* dataset works, need to fix file
* public file added
tabs removed for public dataset
* public file page shows up, has error
* something breaks on page, might be related to visualizations
* errors seem to be on visualization dab
* routes had dependency that was not needed
* public file menu boolean, not all options should appear
adding public visualizations, we need that and metadata eventually
* adding public visualizations
* public visualization view
* adding to reducers index, fixing names
* will need to use another file actions menu
* removing some unused imports
adding public metadata
* deleting the metadata public routers
just adding method to the public files and datasets
* public metadata
* adding metadata
* fixing public dataset details
* no more error on public file
* user metadata tab should work now
checks if public view, uses other route if public
* adding method to public_datasets.js for metadata
listener metadata tab
* public layout removes links we do not use in this view
* change explore to public
* some fake data will be public
change to DatasetIn
* fix public metadata extraction tab for file
missing import
* using public layout in public dataset
* download public file version
* route to download public dataset
* HACK ADDED - probably not a good idea
if the user is public, an email is returned for
[email protected]
* register or login for public page
* adding authenticated status
* return public datasets
* have some authenticated datasets as well
* fixing auth for public datasets
* checking for public dataset files
* changing auth for public or authenticated things
* adding filestatus for easier checks
* changing status of files?
* adding has public access method
* new method
* adding public as well as authenticated
* can now view files if they are public
but it looks like the viewer can do things they should not be able to
* check public access method added, fixed to work for files
* viewer cannot run extraction on file
* formatting
* running codegen
* formatting
* fixing package lock, ws wrong
* formatting
* remove extraction history tab on public view
fixing update of status on dataset patch
* fix file summary on public file
* reverting change
* fixing file status change, looks like that broke
removing unnecessary file status field
just using downloadResource
* return public access
* fixing public visualization
* fixed the broken visualization on public files
* formatting
* does not work
* think this fixed it
* putting downloadPublicResource back in, errors not fixed
* putting downloadPublicResource back in, errors not fixed
* adding publicView option to the various visualizations. this means the right URL will be used if we are seeing this in public view. otherwise the raw bytes do not download
* fix package lock
* removing console logs
* removing console logs
* removing console logs
* catch case if authorization is None and no public access for file
* role was not working for dataset, fixed there but still not showing on tab
* does not break on front end, still needs clean up
* back end fixes after merge, some authorizations were not checked correctly.
files did not switch to public or authenticated properly
* fix file tab extractor
* file metadata from listeners now displays for public files
* button back for add metadata dataset
* ran codegen
* public metadata definitions
* metadata should work now for public when not signed in
* fixed text visualization, endpoint for public_files had a typo
* fixing more typoes
* formatting
* codegen
* removing search for now
* increment should be false for getting public files
* adding public check to dataset files
* check public or authenticated in dataset routes
* don't use public route
* removing console logs
* fake data should populate both PUBLIC and AUTHENTICATED datasets
* fixing download
* fixing type on public/files
dataset download fixed
download file and file version fixed
public elasticsearch added to router
* removing unused methods
* remove divider
* codegen
* put divider back in
public dataset card allows dataset download when public
* removed divider
* can download public file from file menu now
* remove unused method
black formatting
* black formatting
* black formatting
---------
Co-authored-by: Chen Wang <[email protected]>1 parent cf3877e commit d76b2c4
File tree
76 files changed
+5744
-263
lines changed- backend/app
- deps
- models
- routers
- search
- tests
- frontend/src
- actions
- components
- datasets
- files
- metadata
- versions
- visualizations
- Audio
- CSV
- Html
- Image
- Text
- VegaSpec
- openapi/v2
- models
- services
- reducers
- types
- utils
- scripts/develop/populate_fake_data
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+5744
-263
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 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 | + | |
16 | 43 | | |
17 | 44 | | |
18 | 45 | | |
| |||
31 | 58 | | |
32 | 59 | | |
33 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
34 | 66 | | |
35 | 67 | | |
36 | 68 | | |
| |||
55 | 87 | | |
56 | 88 | | |
57 | 89 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
67 | 95 | | |
68 | 96 | | |
69 | 97 | | |
| |||
199 | 227 | | |
200 | 228 | | |
201 | 229 | | |
| 230 | + | |
202 | 231 | | |
203 | 232 | | |
204 | 233 | | |
| |||
249 | 278 | | |
250 | 279 | | |
251 | 280 | | |
252 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
253 | 290 | | |
254 | 291 | | |
255 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
121 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
122 | 137 | | |
123 | 138 | | |
124 | 139 | | |
| |||
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
135 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
136 | 159 | | |
137 | 160 | | |
138 | 161 | | |
139 | 162 | | |
140 | 163 | | |
141 | 164 | | |
142 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
143 | 171 | | |
144 | 172 | | |
145 | 173 | | |
| |||
164 | 192 | | |
165 | 193 | | |
166 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
167 | 200 | | |
168 | 201 | | |
169 | 202 | | |
| |||
182 | 215 | | |
183 | 216 | | |
184 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
185 | 223 | | |
186 | 224 | | |
187 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
| |||
47 | 60 | | |
48 | 61 | | |
49 | 62 | | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
0 commit comments