Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information