DIGIT Public Finance Management
PlatformDomainsAcademyDesign SystemFeedback
v1.1-alpha
v1.1-alpha
  • iFIX
  • Blue Print
  • Platform
    • Release Notes
      • mGramSeva Release Notes
        • MDMS & Configuration Updates
        • Test Cases
        • Service Build Updates
        • mGramSeva Product Release Notes
      • iFIX Core Release Notes
        • iFIX Core Build Updates
        • iFIX Core Test Cases
      • iFIX Adaptor Release Notes
        • iFIX Adaptor Build Update
        • iFIX Adaptor Test Cases
    • Features
    • Architecture
      • Principles
      • Specifications
        • Information Model
        • APIs
      • Services
        • iFix Master Data Service
        • iFix Department Entity Service
        • iFix Fiscal Event Service
        • iFix Fiscal Event Post Processor
        • iFix Client Management Service
          • Keycloak Setup
      • Technology
    • Installation
      • Infrastructure Setup
        • Quickstart/Local Setup
        • On AWS
        • On Azure
      • Deploy Services
        • Deploy from your local machine
        • CI/CD
      • API Access Key
      • Configuring Master Data
    • Source Code
  • Exemplar
    • mGramSeva
      • Functionalities
        • Login and Forgot Password
        • User Roles and Home Screen
        • Create Consumer
        • Search Consumer
        • Edit Consumer
        • View Consumer
        • Billing - Bulk Demand Generation
        • Billing - Metered Connection
        • Revenue Collection - Offline
        • Expenditure - Add Expense
        • Expenditure - Modify Expense
        • User Onboarding - Bulk Upload
        • User Onboarding/Walkthrough
        • Feedback - Post Payment
        • SMS Notifications
        • Home Page Notifications
        • Edit User Profile
        • Bill and Receipt PDF
        • Update Expense Search
        • Bulk Demand Generation for Non Metered
        • Demand/Bill Generation for Metered Connection
        • Household Register
        • Tabular Dashboard - Expense
        • Tabular Dashboard - Collection
        • Download Bills and Receipt
      • Architecture
        • Technology
      • Source Code
      • Documents
        • User Manual
        • Demo video
        • UI Mockups
        • mGramSeva UI
          • Application Permissions & Dependencies
        • Tech User Manual
          • Language Selection
          • Login
          • Update Password FTL
          • Forgot Password
          • Home
          • Edit Profile
          • Change Password
          • Generate Bill
          • Search Connection
          • Consumer Details
            • Create Consumer
            • Update Consumer
          • Expenses
            • Add Expenses
            • Search Expense Bills
            • Modify Expenses
          • Dashboard
            • Monthly Dashboard
            • Collections Dashboard
            • Expenditure Dashboard
          • Collect Payment
          • Consumer Feedback
          • Household Register
          • Bluetooth Thermal Printer Integration
          • Application Structure
        • Application Structure
        • Integration Testing
        • Integration Testing With Github Actions
        • Firebase Analytics Integration
        • Backend Services
          • mGramSeva - Water Services
          • mGramSeva - Water Service Calculator
          • mGramSeva e-Challan Service
          • mGramSeva - User Service
          • mGramSeva - Billing Service
          • mGramSeva - User OTP
          • iFix Adapter Integration Service
          • mGramSeva - Rollout Dashboard
          • mGramSeva Scheduler
          • mGramSeva- Services Re-Indexing
          • mGramSeva Dashboard
    • iFIX Adapter
      • iFix Adapter Services v1.0
      • Source Code
      • Installation
        • Local Setup
        • CI/CD
    • iFIX Dashboard
      • Features
      • Architecture
        • Technology
      • Source Code
      • Installation
        • Local Setup
        • CI/CD
      • Documents
        • iFIX Core Data Cleanup
        • Master Data Setup
        • Fiscal Event Aggregator
  • Ecosystem
    • News and Events
  • Community
    • Roadmap
    • Discussions
    • Issues
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Druid Data Clean-up
  • MongoDB Data Clean-up
  • PostgresDB Data Clean-up

Was this helpful?

  1. Exemplar
  2. iFIX Dashboard
  3. Documents

iFIX Core Data Cleanup

PreviousDocumentsNextMaster Data Setup

Last updated 3 years ago

Was this helpful?

Please follow the below instructions to clean up the ifix core data from the environment.

Druid Data Clean-up

  1. Open the druid console to the respective environment.

  2. Go to Ingestion → Supervisors. And select the particular supervisor (fiscal-event)

a.) In Action , click on Terminate. This will terminate the supervisor. Wait for a minute.

3. Go to DataSources, select the particular data source name (fiscal-event). And scroll till right to the Action.

a.) Click on the Mark as unused all segments → Mark as unused all segments.

b.) Click on Delete unused segments(issue kill task) and give all the permission to delete.

MongoDB Data Clean-up

Please follow the below steps:

  1. Connect to the playground pod and run the below command to connect with mongo DB.

mongo --host <mongo-db-host>:<mongo-db-port> -u <mongo-db-username> -p <mongo-db-password>

2. Use the ifix core DB.use ifix_dev_db

3. Run the below command to delete all the data from fiscal_event collection.

db.fiscal_event.remove({});

4. If you want to delete all fiscal event record of particular Gram Panchayat then run the below command.

Here let us assume, we have to delete "LODHIPUR" GP(Gram Panchayat) details (that is hierarchy level 6) from DWSS department. then run this command.

1db.fiscal_event.remove({"departmentEntity.ancestry.6.name":{$eq:"LODHIPUR"}});

5. If you want to delete fiscal event record based on some other attributes, you have to write a custom mongo delete query.

PostgresDB Data Clean-up

Please follow the below steps:

  1. Connect to the playground pod and run the below command to connect with postgresDB.

psql -h <psql-host> -p <psql-port> -d <psql-database> -U <psql-username>

2. It will prompt for a password. Please enter the password.

3. Run the below query to delete all the data from fiscal_event_aggregated.

1DELETE FROM fiscal_event_aggregated;

4. If you want to delete the particular Gram Panchayat details from fiscal event aggregated record, run the below query.

Here let us assume, we have to delete "LODHIPUR" GP(Gram Panchayat) details (that is hierarchy level 6) from the DWSS department.

1DELETE FROM fiscal_event_aggregated where departmentEntity_ancestry_6_name='LODHIPUR';

Note: If you are not sure about deleting the fiscal event aggregated record, you can delete all the records from the fiscal_event_aggregated table. Once deleted all the records, either you can manually run the fiscal event aggregate Cron Job to UpSert all the records or it will UpSert the record every mid night from Druid to Postgres.

Once the clean up completes, follow the instructions in this link to run the supervisor.

IFIX Fiscal Event Post Processor | Druid-Sink