-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datahub (fix): Handle UpdateFrequency not defined #693
Conversation
this prevents displaying abstract 'undefined' as string in record-preview (although abstract should usually not be undefined)
Affected libs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG thanks !
I'm surprised that the update frequency can be |
Indeed, there is no value at all in the GN response. The |
IMO these issues come from the fact that we don't use the Typescript strict mode, so we sometimes end up with unexpected What do you think @tkohr ? |
Yes, right, remove it completely.
Why rather |
Well if we couldn't match the frequency to anything, it is effectively unknown. If there's no frequency at all in the GN4 record then this shouldn't be called. But I'm not 100% sure, so do as you see fit :) |
Yes, right, got it, so I've used |
Hum, so not returning |
if it's taking you too far forget it, let's not spend too much time on this |
8a489e2
to
fa4dc70
Compare
Ok, I've kept the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Follow-up for #679 which forgot to handle the
UpdateFrequency
if not defined: https://www.geo2france.fr/datahub/dataset/33fb5924-d7ea-4ac5-bf1e-651c0600109eAlso added a commit to the html util functions to better handle
undefined
inputs. Currently, they are only used for therecord.abstract
which should always be defined, but on the dev instance this will get rid of the 'undefined' strings displayed in therecord-preview