From bb9d365abeb7667bbce3aa0a254011b5ae8ff3ca Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Sat, 7 Jan 2023 21:26:33 -0500 Subject: [PATCH 1/4] Increment version number to 0.1.0 --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f05d4e7..c9faa13 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: gqlr Title: 'GraphQL' Server in R -Version: 0.0.2.9000 +Version: 0.1.0 Authors@R: c( person("Barret", "Schloerke", email = "schloerke@gmail.com", role = c("aut", "cre")), person("Ryan", "Hafen", email = "rhafen@gmail.com", role = c("ths")), diff --git a/NEWS.md b/NEWS.md index 8eed07d..4c3b4aa 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# gqlr (development version) +# gqlr 0.1.0 ## Breaking changes From d01336012bf79cd2b3386b7823fd5df087fbf0db Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Sat, 7 Jan 2023 21:34:28 -0500 Subject: [PATCH 2/4] Run revdep; No reverse deps --- .Rbuildignore | 1 + revdep/.gitignore | 7 +++++++ revdep/README.md | 23 +++++++++++++++++++++++ revdep/cran.md | 7 +++++++ revdep/failures.md | 1 + revdep/problems.md | 1 + 6 files changed, 40 insertions(+) create mode 100644 revdep/.gitignore create mode 100644 revdep/README.md create mode 100644 revdep/cran.md create mode 100644 revdep/failures.md create mode 100644 revdep/problems.md diff --git a/.Rbuildignore b/.Rbuildignore index c58747e..c35e041 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -16,3 +16,4 @@ lintr_cache ^docs$ ^pkgdown$ ^\.github$ +^revdep$ diff --git a/revdep/.gitignore b/revdep/.gitignore new file mode 100644 index 0000000..111ab32 --- /dev/null +++ b/revdep/.gitignore @@ -0,0 +1,7 @@ +checks +library +checks.noindex +library.noindex +cloud.noindex +data.sqlite +*.html diff --git a/revdep/README.md b/revdep/README.md new file mode 100644 index 0000000..8cd344c --- /dev/null +++ b/revdep/README.md @@ -0,0 +1,23 @@ +# Platform + +|field |value | +|:--------|:------------------------------| +|version |R version 4.1.3 (2022-03-10) | +|os |macOS Big Sur/Monterey 10.16 | +|system |x86_64, darwin17.0 | +|ui |X11 | +|language |(EN) | +|collate |en_US.UTF-8 | +|ctype |en_US.UTF-8 | +|tz |America/New_York | +|date |2023-01-07 | +|pandoc |2.19.2 @ /usr/local/bin/pandoc | + +# Dependencies + +|package |old |new |Δ | +|:-------|:-----|:-----|:--| +|gqlr |0.0.2 |0.1.0 |* | + +# Revdeps + diff --git a/revdep/cran.md b/revdep/cran.md new file mode 100644 index 0000000..33114b6 --- /dev/null +++ b/revdep/cran.md @@ -0,0 +1,7 @@ +## revdepcheck results + +We checked 0 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. + + * We saw 0 new problems + * We failed to check 0 packages + diff --git a/revdep/failures.md b/revdep/failures.md new file mode 100644 index 0000000..9a20736 --- /dev/null +++ b/revdep/failures.md @@ -0,0 +1 @@ +*Wow, no problems at all. :)* \ No newline at end of file diff --git a/revdep/problems.md b/revdep/problems.md new file mode 100644 index 0000000..9a20736 --- /dev/null +++ b/revdep/problems.md @@ -0,0 +1 @@ +*Wow, no problems at all. :)* \ No newline at end of file From bd22af5e8d9b9a74c539b1f7ee68e1f679b27531 Mon Sep 17 00:00:00 2001 From: schloerke Date: Sun, 8 Jan 2023 02:38:40 +0000 Subject: [PATCH 3/4] `devtools::document()` (GitHub Actions) --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index c9faa13..2af6658 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -28,7 +28,7 @@ Suggests: roxygen2 (>= 7.0.0), testthat (>= 3.1.5) Roxygen: list() -RoxygenNote: 7.2.2 +RoxygenNote: 7.2.3 Encoding: UTF-8 Config/testthat/edition: 3 Config/Needs/website: tidyverse/tidytemplate From 3c77abf22bae60c6fe05acdd1dea088954f5ade8 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Sat, 7 Jan 2023 21:40:06 -0500 Subject: [PATCH 4/4] Document and update URLs --- DESCRIPTION | 12 ++++++------ R/R6-6.1-executing-requests.R | 6 +++--- R/R6-ErrorList.R | 2 +- R/server.R | 2 +- README.md | 2 +- man/execute_request.Rd | 6 +++--- man/server.Rd | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c9faa13..e5af078 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -4,18 +4,18 @@ Version: 0.1.0 Authors@R: c( person("Barret", "Schloerke", email = "schloerke@gmail.com", role = c("aut", "cre")), person("Ryan", "Hafen", email = "rhafen@gmail.com", role = c("ths")), - person("GraphQL", role = "cph", comment = "http://graphql.github.io/graphql-spec/") + person("GraphQL", role = "cph", comment = "http://spec.graphql.org/") ) -Description: Server implementation of 'GraphQL' , +Description: Server implementation of 'GraphQL' , a query language originally created by Facebook for describing data requirements on complex application - data models. Visit to learn more about 'GraphQL'. + data models. Visit to learn more about 'GraphQL'. Depends: R (>= 3.2.2) License: MIT + file LICENSE URL: http://schloerke.com/gqlr/, https://github.com/schloerke/gqlr, - http://graphql.github.io/graphql-spec/, - http://graphql.org + http://spec.graphql.org/, + https://graphql.org BugReports: https://github.com/schloerke/gqlr/issues Imports: graphql (>= 1.3), @@ -28,7 +28,7 @@ Suggests: roxygen2 (>= 7.0.0), testthat (>= 3.1.5) Roxygen: list() -RoxygenNote: 7.2.2 +RoxygenNote: 7.2.3 Encoding: UTF-8 Config/testthat/edition: 3 Config/Needs/website: tidyverse/tidytemplate diff --git a/R/R6-6.1-executing-requests.R b/R/R6-6.1-executing-requests.R index bba73ef..583a6ca 100644 --- a/R/R6-6.1-executing-requests.R +++ b/R/R6-6.1-executing-requests.R @@ -60,9 +60,9 @@ #' @param operation_name name of request operation to execute. If not value is #' provided it will use the operation in the request string. If more than one #' operations exist, an error will be produced. See -#' \url{https://graphql.github.io/graphql-spec/October2016/#GetOperation()} +#' \url{http://spec.graphql.org/October2016/#GetOperation()} #' @param variables a named list containing variable values. -#' \url{https://graphql.github.io/graphql-spec/October2016/#sec-Language.Variables} +#' \url{http://spec.graphql.org/October2016/#sec-Language.Variables} #' @param initial_value default value for executing requests. This value can #' either be provided and/or combined with the resolve method of the query #' root type or mutation root type. The value provided should be a named list @@ -70,7 +70,7 @@ #' value may be a function that returns a value of the field name type. #' @param ... ignored for paramter expansion #' @param verbose_errors logical to determine if error-like messages should be displayed when processing a request that finds unknown structures. Be default, this is only enabled when \code{verbose_errors = rlang::is_interactive()} is \code{TRUE}. -#' @references \url{https://graphql.github.io/graphql-spec/October2016/#sec-Execution} +#' @references \url{http://spec.graphql.org/October2016/#sec-Execution} #' @export #' @examples #' \donttest{ diff --git a/R/R6-ErrorList.R b/R/R6-ErrorList.R index 91d274b..de353ac 100644 --- a/R/R6-ErrorList.R +++ b/R/R6-ErrorList.R @@ -53,7 +53,7 @@ for_onload(function() { ErrorList <- R6Class("ErrorList", private = list( # nolint start - # https://graphql.github.io/graphql-spec/October2016/ + # http://spec.graphql.org/October2016/ # document.querySelectorAll( "#sec-Validation section" ).forEach( # function(x,i){console.log(x.firstChild.innerText)} # ) diff --git a/R/server.R b/R/server.R index 1832896..1718684 100644 --- a/R/server.R +++ b/R/server.R @@ -10,7 +10,7 @@ #' #' To view the GraphiQL user interface, navigate to the URL provided when the server is started. The default location is \code{http://localhost:8000/graphiql/}. By default, this route is only available when running the server interactively (\code{graphiql = rlang::is_interactive()}). #' -#' \code{server()} implements the basic necessities described in \url{http://graphql.org/learn/serving-over-http/}. There are four routes implemented: +#' \code{server()} implements the basic necessities described in \url{https://graphql.org/learn/serving-over-http/}. There are four routes implemented: #' #' \describe{ #' \item{\code{'/'}}{GET. If run interactively, forwards to \code{/graphiql} for user interaction with the GraphQL server. This route is diabled if \code{graphiql = rlang::is_interactive()} is not \code{TRUE}.} diff --git a/README.md b/README.md index d3f7390..b05279b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## Overview -GraphQL is a data "query language created by Facebook in 2015 for describing the capabilities and requirements of data models for client‐server applications". The [GraphQL specification can be read on their hosted GitHub](https://graphql.github.io/graphql-spec/). A [cliff notes version is described on GraphQL's GitHub](https://github.com/graphql/graphql-spec). To learn more about the GraphQL language, I highly recommend [GraphQL's website](http://graphql.org/learn/). +GraphQL is a data "query language created by Facebook in 2015 for describing the capabilities and requirements of data models for client‐server applications". The [GraphQL specification can be read on their hosted GitHub](http://spec.graphql.org/). A [cliff notes version is described on GraphQL's GitHub](http://spec.graphql.org/). To learn more about the GraphQL language, I highly recommend [GraphQL's website](https://graphql.org/learn/). This package pulls inspiration from [graphql-js](https://github.com/graphql/graphql-js) and [Mathew Mueller's graph.ql](https://github.com/matthewmueller/graph.ql). I wanted the full functionality of GraphQL, but I didn't want to force users to write full object definitions when can already be defined with GraphQL syntax. diff --git a/man/execute_request.Rd b/man/execute_request.Rd index c55a694..c6a2272 100644 --- a/man/execute_request.Rd +++ b/man/execute_request.Rd @@ -25,10 +25,10 @@ or a schema object created from \code{\link{gqlr_schema}}} \item{operation_name}{name of request operation to execute. If not value is provided it will use the operation in the request string. If more than one operations exist, an error will be produced. See -\url{https://graphql.github.io/graphql-spec/October2016/#GetOperation()}} +\url{http://spec.graphql.org/October2016/#GetOperation()}} \item{variables}{a named list containing variable values. -\url{https://graphql.github.io/graphql-spec/October2016/#sec-Language.Variables}} +\url{http://spec.graphql.org/October2016/#sec-Language.Variables}} \item{initial_value}{default value for executing requests. This value can either be provided and/or combined with the resolve method of the query @@ -135,5 +135,5 @@ execute_request(" } } \references{ -\url{https://graphql.github.io/graphql-spec/October2016/#sec-Execution} +\url{http://spec.graphql.org/October2016/#sec-Execution} } diff --git a/man/server.Rd b/man/server.Rd index f2ff033..ed58846 100644 --- a/man/server.Rd +++ b/man/server.Rd @@ -32,7 +32,7 @@ Run a basic GraphQL server using plumber. This server is provided to show basic \details{ To view the GraphiQL user interface, navigate to the URL provided when the server is started. The default location is \code{http://localhost:8000/graphiql/}. By default, this route is only available when running the server interactively (\code{graphiql = rlang::is_interactive()}). -\code{server()} implements the basic necessities described in \url{http://graphql.org/learn/serving-over-http/}. There are four routes implemented: +\code{server()} implements the basic necessities described in \url{https://graphql.org/learn/serving-over-http/}. There are four routes implemented: \describe{ \item{\code{'/'}}{GET. If run interactively, forwards to \code{/graphiql} for user interaction with the GraphQL server. This route is diabled if \code{graphiql = rlang::is_interactive()} is not \code{TRUE}.}