Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Point Collection FeatureCollections update working #413

Merged
merged 1 commit into from
Feb 8, 2016

Conversation

lesserwhirls
Copy link
Collaborator

Fixed #378

The update function would update the local state of the available date/time range
of the dataset in the catalog, but this was not being properly checked in the
request validation. Note that this will not scale well, as the validation bean
checks the date/time range on the CompositePointDataset object, which only gets
updated on server restart.

//
UpdateableCollection uc = (UpdateableCollection) fd;
have = uc.update();
} catch (IOException e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to log an error on the IOException and catch (and swallow) any errors from casting to UpdatableCollection.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this should be fixed in the updated PR. Thanks!

On Monday, February 8, 2016, Ryan May notifications@github.com wrote:

In tds/src/main/java/thredds/server/ncss/params/NcssParamsBean.java
#413 (comment):

@@ -405,6 +407,20 @@ public boolean isValidGridRequest() {

public boolean intersectsTime(FeatureDataset fd, Formatter errs) throws ParseException {
CalendarDateRange have = fd.getCalendarDateRange();

  • try {
  •  //
    
  •  // if this is an updatable collection, check for a new CalendarDateRange (i.e. new
    
  •  // data available).
    
  •  // The issue is that fd does not get updated with thredds.catalog.InvDatasetFcPoint
    
  •  //
    
  •  // This allows requests to be fulfilled, even if the correct CalendarDateRange is
    
  •  // not available in the catalog. Ideally these should be synced.
    
  •  //
    
  •  UpdateableCollection uc = (UpdateableCollection) fd;
    
  •  have = uc.update();
    
  • } catch (IOException e) {

Probably need to log an error on the IOException and catch (and swallow)
any errors from casting to UpdatableCollection.


Reply to this email directly or view it on GitHub
https://github.com/Unidata/thredds/pull/413/files#r52215923.

Fixed Unidata#378

The update function would update the local state of the available date/time range
of the dataset in the catalog, but this was not being properly checked in the
request validation. Note that this essentially doubles the check of the date/time
range.
dopplershift added a commit that referenced this pull request Feb 8, 2016
Point Collection FeatureCollections update working
@dopplershift dopplershift merged commit db40868 into Unidata:master Feb 8, 2016
@lesserwhirls lesserwhirls deleted the point branch February 10, 2016 01:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants