Comments (9)
In GitLab by @manuelma on Dec 14, 2018, 21:14
changed title from More checks on inser/update to More checks on inser{+t+}/update
from spine-database-api.
In GitLab by @PekkaSavolainen on Dec 17, 2018, 11:17
changed the description
from spine-database-api.
In GitLab by @PekkaSavolainen on Dec 17, 2018, 11:26
I added one task (Check that input is valid JSON). I'm not sure if this is implemented already but it just means that it should not be possible to give input that is invalid JSON, like [2, 3, 4
or something. This could just be a try-except check. Something like the following.
try:
json.load(someinput)
except json.JSONDecodeError:
# not valid JSON
return False
return True
There seems to be some checks for this in the Toolbox already, so this might be done already.
from spine-database-api.
In GitLab by @manuelma on Jan 24, 2019, 16:06
changed the description
from spine-database-api.
In GitLab by @manuelma on Jan 24, 2019, 16:06
changed the description
from spine-database-api.
In GitLab by @manuelma on Feb 28, 2019, 16:15
I wonder what's the best way to implement the forbidden names? At the moment, if one has a parameter called, e.g., 'length', then SpineModel.JuMP_all_out
fails with the following error message:
ERROR: LoadError: error in method definition: function Base.length must be explicitly imported to be
extended
My guess is it would be difficult to keep a blacklist in spinedatabase_api and perhaps it's better to raise this kind of errors in julia? We could rework the error message to instruct the user to change their parameter name....
from spine-database-api.
In GitLab by @jkiviluo on Mar 1, 2019, 12:15
The blacklist should be tool/language specific. It would be nicer to catch it on the Data Store side already, but it's probably impractical. Therefore, the forbidden names could also be in JuMP_all_out for all Julia based tools. It might be that this problem is actually Julia specific since we turn our objects and parameters into function calls. That would not be the case with all languages.
from spine-database-api.
In GitLab by @manuelma on Apr 9, 2019, 00:55
mentioned in commit 178d747
from spine-database-api.
In GitLab by @manuelma on May 30, 2019, 19:12
marked the task Check that input is valid JSON as completed
from spine-database-api.
Related Issues (20)
- Restablish unique key 'name' for entity_class
- Parameter values as Apache Arrow objects HOT 4
- Can't trust legacy tool/feature/method for compatibility transformations
- Write type information for simple types as well
- Rollback purge HOT 1
- Add Toolbox tests to GitHub actions? HOT 3
- Parameter value format documentation is missing index_name
- Wrong results after changing a filter
- Make sure TempId travel safely across the socket (DB server)
- The tool filter only works with 1 tool activated
- No entity can pass its tool filter when there are multiple `tool_feature_method`s HOT 1
- Fix broken example in parameter_value API documentation
- Guidelines on what to import in __init__.py
- Improve parsing performance by accepting only ISO 8601 time stamps HOT 2
- Check that CHANGELOG.md is up-to-date for 0.8-dev HOT 1
- Compatibility transformation should keep working after the first time HOT 1
- Alternative filter does not filter by entity alternatives
- Trying to get a parameter value that does not exist Tracebacks
- Mention the difference between entity_byname and element_name_list in documentation HOT 2
- Support EPS Value in GDX Exporter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spine-database-api.