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

GovTool 1.0.20-dev #2115

Merged
merged 50 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2f240b3
add tags to merged pr
Baja-KS Sep 7, 2024
f7fca31
Merge pull request #1977 from IntersectMBO/tags-in-merged-pr
mpavlovicbb Sep 19, 2024
4050632
feat: add teardown to refund remaining balance to faucet
kneerose Sep 10, 2024
b09b954
chore: add multiple dRepDeRegistration on kuber service
kneerose Sep 10, 2024
b50f524
feat: add dRep deRegestration teardown
kneerose Sep 10, 2024
821f20a
chore: remove copy register drep wallet used for direct voter
kneerose Sep 16, 2024
8ab38c0
chore: remove copy registered DRep wallet for dRep retirement
kneerose Sep 17, 2024
00a176f
chore: replace file path with read wallets for registerDRep and regis…
kneerose Sep 17, 2024
2039f8e
[#1856] add off chain data error to listDreps response
j-dyczka Sep 23, 2024
d74fbe2
chore: update temporary proposal wallets message
kneerose Sep 24, 2024
899516e
chore: update delegation doc url
kneerose Sep 24, 2024
841dacd
chore: add assertion to wait for governance actions loaded
kneerose Sep 24, 2024
ef78262
Merge pull request #2076 from IntersectMBO/bugfix/3A
kneerose Sep 24, 2024
90fd2c6
Merge pull request #2075 from IntersectMBO/chore/update-docs-url
kneerose Sep 24, 2024
d15549b
Merge pull request #2074 from IntersectMBO/feat/dRep-faucet-teardown
kneerose Sep 24, 2024
288446c
[#1875] add missing testIds for submitted votes
j-dyczka Sep 24, 2024
f5d7f3f
Merge pull request #2077 from IntersectMBO/fix/1875-missing-test-id-f…
jdyczka Sep 25, 2024
4cf5953
[#2062] change CC vote totals labels
j-dyczka Sep 25, 2024
fb2eda6
Merge pull request #2078 from IntersectMBO/feat/2062-cc-vote-totals
jdyczka Sep 26, 2024
d5706cc
chore: intercept epoch/params instead of using local storage to updat…
kneerose Sep 24, 2024
9edb93a
chore: add test ids for dRep, spos and ccCommittee votes
kneerose Sep 26, 2024
4879c89
chore: add assertion for dRep, spos and ccCommittes votes visiblity
kneerose Sep 26, 2024
8cba5c6
Merge pull request #2081 from IntersectMBO/bugfix/bootstrap-proposal-…
kneerose Sep 27, 2024
56b9965
fix: test 4G by update test ids and its assertion
kneerose Sep 27, 2024
c5c366f
fix: test 4K by update test ids and its assertion
kneerose Sep 27, 2024
24e23d6
chore/test: Remove auto system prune on build
mesudip Sep 18, 2024
72aa9c1
fix: test 2k_2 due to status
kneerose Sep 27, 2024
1382590
test: add test 2k_3 to check random dRep sorting behaviour
kneerose Sep 27, 2024
ff2d8ba
refactor: arrow functions of status sort and validate to remove redun…
kneerose Sep 27, 2024
dde4fd1
Fail build when any of the service update fail
mesudip Sep 27, 2024
913f692
fix: update network name assertion in test 6T to improve accuracy
kneerose Sep 27, 2024
866eb8f
Merge pull request #2087 from IntersectMBO/feat/random-sort
kneerose Sep 27, 2024
86283e2
Merge pull request #2089 from IntersectMBO/bugfix/6T
kneerose Sep 27, 2024
136c8fa
Merge pull request #2086 from IntersectMBO/BugFix/4G-4K
kneerose Sep 27, 2024
abaa9fa
chore: gov-action-loader minor ui fixes
mesudip Sep 27, 2024
b5384e5
Merge pull request #2088 from IntersectMBO/infra/test-chores
mesudip Sep 27, 2024
e9a0bea
[#1856] fix bugs that occur when parsing nested metadata
j-dyczka Sep 27, 2024
85be603
fix(#1989): workaround for downloading metadata on iOS Safari
MSzalowski Sep 30, 2024
540799f
fix: update testid of terms of use
kneerose Oct 1, 2024
8621e64
Merge pull request #2094 from IntersectMBO/fix/1989--mobile-cant-down…
MSzalowski Oct 1, 2024
7826b55
[#2090] fix infinite loading in DRep Directory
j-dyczka Oct 2, 2024
5b7b695
Merge pull request #2093 from IntersectMBO/fix/1856-missing-off-chain…
jdyczka Oct 2, 2024
b71f63d
Merge pull request #2096 from IntersectMBO/bugfix/6M
kneerose Oct 2, 2024
882bfe8
[#1995] add useful external links to home page and dashboard
j-dyczka Oct 2, 2024
8b2d90e
Merge pull request #2111 from IntersectMBO/feat/1995-useful-links
jdyczka Oct 2, 2024
7a60b0e
bump @intersect.mbo/pdf-ui to v0.4.0
j-dyczka Oct 2, 2024
274d2ff
Merge pull request #2112 from IntersectMBO/chore/bump-pdf-ui-to-v0.4.0
jdyczka Oct 2, 2024
509440a
Merge pull request #2109 from IntersectMBO/fix/2090-drep-directory-in…
jdyczka Oct 2, 2024
fb53b43
chore: bump GovTool version to v1.0.20
j-dyczka Oct 2, 2024
40965a7
Merge pull request #2113 from IntersectMBO/chore/bump-govtool-to-v1.0.20
MSzalowski Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-and-deploy-test-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
key: ${{ secrets.TEST_STACK_SSH_KEY }}
command_timeout: 100m ## Haskell container build takes a lot of time.
script: |
set -euo pipefail
REPO_URL="https://github.com/${{ github.repository }}"
DEST_DIR="$HOME/Documents/govtool"

Expand Down Expand Up @@ -59,9 +60,8 @@ jobs:
# Execute the build-and-deploy.sh script
cd $DEST_DIR/tests/test-infrastructure
./build-and-deploy.sh update-images
docker system prune
(docker image ls -q | xargs docker image rm --force ) || echo "Images cleaned-up"
envs: GOVTOOL_TAG, GRAFANA_ADMIN_PASSWORD, GRAFANA_SLACK_RECIPIENT, GRAFANA_SLACK_OAUTH_TOKEN, SENTRY_DSN_BACKEND, GTM_ID, NPMRC_TOKEN, SENTRY_DSN_FRONTEND, PIPELINE_URL, USERSNAP_SPACE_API_KEY, APP_ENV, PDF_API_URL
yes | docker system prune -f || echo "Ignoring system prune eror"
envs: GOVTOOL_TAG, GRAFANA_ADMIN_PASSWORD, GRAFANA_SLACK_RECIPIENT, GRAFANA_SLACK_OAUTH_TOKEN, SENTRY_DSN_BACKEND, GTM_ID, NPMRC_TOKEN, SENTRY_DSN_FRONTEND, PIPELINE_URL, USERSNAP_SPACE_API_KEY, APP_ENV, PDF_API_URL, KUBER_API_KEY
env:
GOVTOOL_TAG: ${{ github.sha }}
GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }}
Expand All @@ -75,4 +75,4 @@ jobs:
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
APP_ENV: test
PDF_API_URL: ${{ secrets.PDF_API_URL }}
KUBER_API_KEY: ${{secrets.KUBER_API_KEY}}
KUBER_API_KEY: ${{ secrets.KUBER_API_KEY }}
8 changes: 8 additions & 0 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,11 @@ jobs:
docker load -i '/tmp/image-${{ matrix.name }}-${{ env.ENVIRONMENT }}.tar'
rm -rf '/tmp/image-${{ matrix.name }}-${{ env.ENVIRONMENT }}.tar'
docker push ${{ steps.image_lowercase.outputs.lowercase }}:${{ env.TAG }}

- name: Add tag as a PR comment
uses: ubie-oss/[email protected]
id: comment-to-merged-pr
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
message: |-
This PR is in the tag: ${{ env.TAG }} , for ${{ matrix.name }} service
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@ changes.

-

## [v1.0.20](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.20) 2024-10-03

### Added

- Add useful external links to home page and dashboard [Issue 1995](https://github.com/IntersectMBO/govtool/issues/1995)

### Fixed

- Add missing testIds for submitted votes [Issue 1875](https://github.com/IntersectMBO/govtool/issues/1875)
- Provide workaround for iOS for downloading metadata on iOS [Issue 1989](https://github.com/IntersectMBO/govtool/issues/1989)
- Fix infinite loading in DRep Directory [Issue 2090](https://github.com/IntersectMBO/govtool/issues/2090)

### Changed

- Change constitutional committee vote totals to be constitutional for yes and unconstitutional for no [Issue 2062](https://github.com/IntersectMBO/govtool/issues/2062)
- Bump @intersect.mbo/pdf-ui to v0.4.0
- Include @language property in generated jsonld files [Issue 1856](https://github.com/IntersectMBO/govtool/issues/1856)

### Removed

-

## [v1.0.19](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.19) 2024-09-19

### Added
Expand Down
14 changes: 11 additions & 3 deletions gov-action-loader/frontend/src/views/SpecificLoad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,17 @@ import config from '../config'
<v-btn color="red-lighten-5" variant="flat" class="mt-2 ml-6"
@click="deleteTreasuryWithdrawal(index)">-</v-btn>
</div>
<div class="d-flex justify-center mb-2">
<v-btn color="blue-lighten-5" variant="flat" @click="addTreasuryWithdrawal">+</v-btn>
</div>

<v-tooltip text="Required" location="top">
<template v-slot:activator="{ props }">
<span class="text-h6 mb-2">Guardrail Script</span>
</template>
</v-tooltip>
<v-text-field label="CBOR Hex" v-model="guardrailScript" variant="outlined"></v-text-field>
<div class="d-flex justify-center">
<v-btn color="blue-lighten-5" variant="flat" @click="addTreasuryWithdrawal">+</v-btn>
</div>

</div>

<!-- Add Committee section -->
Expand Down Expand Up @@ -915,6 +917,12 @@ export default {
...(this.DRepDeposit != null ? { DRepDeposit: parseInt(this.DRepDeposit) } : {}),
...(this.DRepActivity != null ? { DRepActivity: parseInt(this.DRepActivity) } : {}),
}
proposal_data['script'] =
{
type: "PlutusScriptV3",
description: "",
cborHex: this.guardrailScript
}
break
}

Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.19/x/vva-be/build/vva-be/vva-be /usr/local/bin
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.20/x/vva-be/build/vva-be/vva-be /usr/local/bin
2 changes: 1 addition & 1 deletion govtool/backend/Dockerfile.qovery
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM $BASE_IMAGE_REPO:$BASE_IMAGE_TAG
WORKDIR /src
COPY . .
RUN cabal build
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.19/x/vva-be/build/vva-be/vva-be /usr/local/bin
RUN cp dist-newstyle/build/x86_64-linux/ghc-9.2.7/vva-be-1.0.20/x/vva-be/build/vva-be/vva-be /usr/local/bin

# Expose the necessary port
EXPOSE 9876
Expand Down
3 changes: 3 additions & 0 deletions govtool/backend/sql/list-dreps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SELECT
newestRegister.time AS last_register_time,
COALESCE(latestDeposit.deposit, 0),
non_deregister_voting_anchor.url IS NOT NULL AS has_non_deregister_voting_anchor,
off_chain_vote_fetch_error.fetch_error,
off_chain_vote_drep_data.payment_address,
off_chain_vote_drep_data.given_name,
off_chain_vote_drep_data.objectives,
Expand Down Expand Up @@ -96,6 +97,7 @@ FROM
AND DRepDistr.rn = 1
LEFT JOIN voting_anchor va ON va.id = dr_voting_anchor.voting_anchor_id
LEFT JOIN voting_anchor non_deregister_voting_anchor on non_deregister_voting_anchor.id = dr_non_deregister_voting_anchor.voting_anchor_id
LEFT JOIN off_chain_vote_fetch_error ON off_chain_vote_fetch_error.voting_anchor_id = va.id
LEFT JOIN off_chain_vote_data ON off_chain_vote_data.voting_anchor_id = va.id
LEFT JOIN off_chain_vote_drep_data on off_chain_vote_drep_data.off_chain_vote_data_id = off_chain_vote_data.id
CROSS JOIN DRepActivity
Expand Down Expand Up @@ -138,6 +140,7 @@ GROUP BY
newestRegister.time,
latestDeposit.deposit,
non_deregister_voting_anchor.url,
off_chain_vote_fetch_error.fetch_error,
off_chain_vote_drep_data.payment_address,
off_chain_vote_drep_data.given_name,
off_chain_vote_drep_data.objectives,
Expand Down
1 change: 1 addition & 0 deletions govtool/backend/src/VVA/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ drepRegistrationToDrep Types.DRepRegistration {..} =
dRepType = mapDRepType dRepRegistrationType,
dRepLatestTxHash = HexText <$> dRepRegistrationLatestTxHash,
dRepLatestRegistrationDate = dRepRegistrationLatestRegistrationDate,
dRepMetadataError = dRepRegistrationMetadataError,
dRepPaymentAddress = dRepRegistrationPaymentAddress,
dRepGivenName = dRepRegistrationGivenName,
dRepObjectives = dRepRegistrationObjectives,
Expand Down
1 change: 1 addition & 0 deletions govtool/backend/src/VVA/API/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ data DRep
, dRepType :: DRepType
, dRepLatestTxHash :: Maybe HexText
, dRepLatestRegistrationDate :: UTCTime
, dRepMetadataError :: Maybe Text
, dRepPaymentAddress :: Maybe Text
, dRepGivenName :: Maybe Text
, dRepObjectives :: Maybe Text
Expand Down
3 changes: 2 additions & 1 deletion govtool/backend/src/VVA/DRep.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ listDReps = withPool $ \conn -> do
results <- liftIO $ SQL.query_ conn listDRepsSql
timeZone <- liftIO getCurrentTimeZone
return
[ DRepRegistration drepHash drepView url dataHash (floor @Scientific deposit) votingPower status drepType txHash (localTimeToUTC timeZone date) paymentAddress givenName objectives motivations qualifications imageUrl imageHash
[ DRepRegistration drepHash drepView url dataHash (floor @Scientific deposit) votingPower status drepType txHash (localTimeToUTC timeZone date) metadataError paymentAddress givenName objectives motivations qualifications imageUrl imageHash
| ( drepHash
, drepView
, url
Expand All @@ -73,6 +73,7 @@ listDReps = withPool $ \conn -> do
, date
, latestDeposit
, latestNonDeregisterVotingAnchorWasNotNull
, metadataError
, paymentAddress
, givenName
, objectives
Expand Down
1 change: 1 addition & 0 deletions govtool/backend/src/VVA/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ data DRepRegistration
, dRepRegistrationType :: DRepType
, dRepRegistrationLatestTxHash :: Maybe Text
, dRepRegistrationLatestRegistrationDate :: UTCTime
, dRepRegistrationMetadataError :: Maybe Text
, dRepRegistrationPaymentAddress :: Maybe Text
, dRepRegistrationGivenName :: Maybe Text
, dRepRegistrationObjectives :: Maybe Text
Expand Down
2 changes: 1 addition & 1 deletion govtool/backend/vva-be.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.6
name: vva-be
version: 1.0.19
version: 1.0.20

-- A short (one-line) description of the package.
-- synopsis:
Expand Down
Loading
Loading