-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/async census creation #70
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…f POST /census expected request (by default to false), new census_type column created on the database to store the census type
…he database and generated in background, a new census column has ben created on the database called 'published' that indicates if the current census is built and published on IPFS
New flow to create and publish a census:
wget --method POST \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--body-data '{"id": "0xa117000000f279D81A1D3cc75430fAA017FA5A2e","type": "erc20"}' \
--output-document \
- https://census3.dev.vocdoni.net/api/token Response:
wget --method POST \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--body-data '{"strategyId": 1}' \
--output-document \
- https://census3.dev.vocdoni.net/api/census Response: {
"queueId": "7c208c69d85dc187725395124514baea3bc5498c"
}
wget --method GET \
--header 'Accept: */*' \
--output-document \
- https://census3.dev.vocdoni.net/api/census/queue/7c208c69d85dc187725395124514baea3bc5498c Response: {
"census": {
"censusId": 1,
"strategyId": 1,
"merkleRoot": "8f2d3b5c15445e6ec3bfe6a5f52c2be1de916ca296ce7474982b4a66b34d3f30",
"uri": "ipfs://bafybeihb5krnn2muubms27gn6egevrjxeb5z7ttp35eqzi3b33ejqwntka",
"size": 10,
"weight": "320822718213393032631430073323170650669553037360",
"chainId": 5,
"anonymous": true
},
"done": true,
"error": null
} |
…the creation of a census that is already created, it is returned through the queue
p4u
requested changes
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
p4u
reviewed
Sep 4, 2023
lucasmenendez
force-pushed
the
feature/async_census_creation
branch
from
September 4, 2023 16:43
8a703b5
to
630bb14
Compare
lucasmenendez
force-pushed
the
feature/async_census_creation
branch
from
September 4, 2023 16:44
630bb14
to
43eee43
Compare
lucasmenendez
force-pushed
the
feature/async_census_creation
branch
from
September 6, 2023 08:22
fb79b3c
to
7dafafb
Compare
lucasmenendez
force-pushed
the
feature/async_census_creation
branch
from
September 6, 2023 08:24
7dafafb
to
1a9106b
Compare
lucasmenendez
force-pushed
the
feature/async_census_creation
branch
from
September 8, 2023 09:02
861cb1d
to
29aa177
Compare
p4u
approved these changes
Sep 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
now when the user tries to create a new census, it is included into the database and generated in background, a new census column has been created on the database called 'published' that indicates if the current census is built and published on IP