Comments (12)
- Add query to update the version of all voided(independent of allow is true or false) to 0 and non-voided to 1
@mahalakshme Will not do this part as per discussion in Avni product group
from avni-server.
@himeshr no Joy mentioned so, because of AC for his card. It will all work together correctly
from avni-server.
@himeshr no Joy mentioned so, because of AC for his card. It will all work together correctly
As per discussion, will update impl_version instead of earlier mentioned version column in group_privilege table.
~Depends on #721 ~
from avni-server.
templateExpressionToGenerateUpdateScript.txt
Used this to auto-generate the sql script for all org-sheets mentioned in this card's description. update script sheet
from avni-server.
the manually run script (created via this card) should only update is_voided (and get the db to a valid state where we can apply the constraint). Updating impl_version also here creates a circular dependency.
the migration (in #721) will introduce the new impl_version column, mark all voided rows with impl_version 0 and add the constraint.
from avni-server.
the manually run script (created via this card) should only update is_voided (and get the db to a valid state where we can apply the constraint). Updating impl_version also here creates a circular dependency.
the migration (in #721) will introduce the new impl_version column, mark all voided rows with impl_version 0 and add the constraint.
Updated the script to not set the impl_version, and just retain 1 non-voided entry as part of the update script.
from avni-server.
Commands to find duplicate ids.txt
WIP: query to void all duplicates after setting allow to false
from avni-server.
Local testing on pre-release for "Mobile Creches" org was successful, with following sql commands executed and output recieved.
sqlOutputMobileCrechesRemovalOfDuplicatePrivileges.txt
mobileCrechesRemovalOfDuplicatePrivileges.txt
from avni-server.
For QA
- the scripts will need to be run on production
- testing and verification should be done in prerelease environment. When verifying we should verify whether the privileges for users are same as they are in production. This is required because the privileges will get updated when the deployment is done for this.
- It would be good to refresh pre-release before testing this (we should make sure that the downtime doesn't block other people)
from avni-server.
- check this comment
- I have updated the privileges with discrepancies for all active organisations here in the sheet: 'For all active orgs with discrepancies'.
- The privileges with discrepancies have changed. So I have used the same formula in the above sheet.
- In the 'Active orgs' sheet have added the final list of active orgs that have discrepancies.
from avni-server.
Migration script available here
from avni-server.
Executed the group privileges updation script in production.
ProdSqlsLogs.txt
ProdSqlsExecuted.txt
from avni-server.
Related Issues (20)
- Incorrect lineage after updating location in WebApp
- Automating question creation in Metabase [DMP 2024]
- [Dashboard] Bundle import/export upgrade HOT 5
- Audit fields in tables are not referencing users table
- [DEA] DEA enhancements - phase 2
- Error on assinging identifiers to users HOT 4
- Address level unique name constraint inadequate when the address is at top level
- Bundle upload issues HOT 1
- [AI in AvnI] Rule generation with RAG
- [AI in AvnI] Rule generation with fine tuning
- Optimise this report query HOT 4
- Org basic metadata is not setup on creation of new org
- Unable to delete org data due to decision_concept dangling entry HOT 2
- [DEA] Enhance Sync attribute settings HOT 7
- Custom standard report card execution compatibility with older client versions HOT 2
- Default filters not to break in older version of client HOT 4
- [DEA] groupSubject not accessible from rules when uploaded via CSV
- Avni server performance degrades after awhile due to memory leak/restrictions HOT 1
- [Performance] POST /api/subject
- Add a check to avoid duplicate database , collection and Permissionsgroup creation when API to setup Metabase is hit [DMP 2024]
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 avni-server.