Skip to content
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

fixes #391 - Update documentation for procedures that have converted to functions #427

Merged
merged 1 commit into from
May 5, 2017

Conversation

AngeloBusato
Copy link
Contributor

We don't found some procedures/functions, so we deleted them from documentation.

apoc.number.format.lang
apoc.number.format.pattern
apoc.number.format.pattern.lang
apoc.number.parseInt.pattern
apoc.number.parseInt.lang
apoc.number.parseInt.pattern.lang
apoc.number.parseFloat.pattern
apoc.number.parseFloat.lang
apoc.number.parseFloat.pattern.lang

apoc.date.formatDefault
apoc.date.parseDefault
apoc.date.formatTimeZone
apoc.date.fieldsFormatted
apoc.date.fieldsDefault

@@ -6,11 +6,8 @@ endif::env-guide[]

== Conversion between formatted dates and timestamps

* `apoc.date.parseDefault('2015-03-25 03:15:59','s')` get Unix time equivalent of given date (in seconds)
* `apoc.date.parse('2015/03/25 03-15-59','s','yyyy/MM/dd HH/mm/ss')` same as previous, but accepts custom datetime format
Copy link
Member

Choose a reason for hiding this comment

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

mark that here everything beyon the first parameter is optional .e.g with ['s']

* `apoc.number.parseInt.pattern(text, pattern) yield value` parse a text using a pattern and the default system language to produce a long
* `apoc.number.parseInt.lang(text, lang) yield value` parse a text using the default system pattern and a language to produce a long
* `apoc.number.parseInt.pattern.lang(text, pattern, lang) yield value` parse a text using a pattern and a language to produce a long
* `apoc.number.parseInt(text)` parse a text using the default system pattern and language to produce a long
Copy link
Member

Choose a reason for hiding this comment

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

these should have a short example like this, and a full with the optional parameters marked

docs/number.adoc Outdated
* `apoc.number.parseFloat.pattern.lang(text, pattern, lang) yield value` parse a text using a pattern and a language to produce a double

* The full list of supported values for `pattern` and `lang` params is described in https://docs.oracle.com/javase/9/docs/api/java/text/DecimalFormat.html[DecimalFormat JavaDoc]
* `apoc.number.parseFloat(text)` parse a text using the default system pattern and language to produce a double
Copy link
Member

Choose a reason for hiding this comment

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

these should have a short example like this, and a full with the optional parameters marked

@@ -33,63 +21,13 @@
....

....
call apoc.number.format.pattern.lang(12345, '#,##0.00;(#,##0.00)', 'it') yield value
Copy link
Member

Choose a reason for hiding this comment

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

don't remove them but replace them with the proper RETURN apoc.number.format(.. with full parameters

@@ -169,25 +169,3 @@ ORDER BY distance
LIMIT 100
----

== Combined Space and Time search
Copy link
Member

Choose a reason for hiding this comment

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

where is the replacement for this? where the procedure calls are replaced with a function call?

@jexp
Copy link
Member

jexp commented May 4, 2017

Ping @AngeloBusato

@AngeloBusato
Copy link
Contributor Author

@jexp Done, PR updated

@jexp jexp merged commit 4bfe515 into neo4j-contrib:3.1 May 5, 2017
albertodelazzari pushed a commit to albertodelazzari/neo4j-apoc-procedures that referenced this pull request Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants