profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/vinayvenu/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

vinayvenu/bahmni-openmrs 2

Repository that encapsulates all the client apps to be packaged as OpenMRS omods.

avniproject/avni-models 0

OpenCHS data model to be used by front end clients

avniproject/jnpct 0

OpenCHS implementation repository for Jashoda Narottam Public Charitable Trust

smartyrad/openmrs-module-tag 0

Provides a generic tagging mechanism for all domain objects

su-docker/config-migrate 0

Tool to make structural changes to your json config files

vinayvenu/15InARow 0

A Javascript version of the popular game 15 in a row

push eventavniproject/avni-server

Vinay Venu

commit sha 2930448aa042523b74d01c86119ac5c742ce635f

FD1437 | Ensure uuid+organisation_id is unique on group_role table

view details

push time in 6 days

push eventavniproject/JSSCP

Vinay Venu

commit sha 8d3148c402e11d5eb595743ee12208e0658beb1c

FD1437 | Duplicate roles were found on the system

view details

push time in 6 days

push eventavniproject/avni-client

Vinay Venu

commit sha a08b76b222f2b23a32c21e764093ecc5be362098

#1211 | Populate syncSource and totalCounts in SyncTelemetry during sync.

view details

push time in 13 days

push eventavniproject/avni-server

Vinay Venu

commit sha 0acadb6c716357f9d299a6047343b417cc76d5bd

#1211 | Add syncSource to SyncTelemetry

view details

push time in 13 days

created tagavniproject/avni-models

tagv1.8.3

OpenCHS data model to be used by front end clients

created time in 13 days

push eventavniproject/avni-models

Vinay Venu

commit sha 73a8a60e05c0c16c79869c93301ffe2a3f551886

1211 | Add syncSource to SyncTelemetry

view details

Vinay Venu

commit sha b95ea3346a182742fbd6371429ee19a87f5033ff

v1.8.3

view details

push time in 13 days

issue openedavniproject/avni-product

Additional parameters to syncTelemetry

We keep having multiple issues with sync that require us to better understand the current status of the local realm database and the sync process. In this story, we add a few more parameters to monitor this better.

Add the following additional parameters to sync telemetry.

  1. Sync source - automatic vs manual
  2. entity_status - add totalCounts: {subject: 12, programEnrolment: 23, programEncounter: 233, encounter: 12}

created time in 13 days

created repositoryavniproject/metabase

Metabase clone for slight modifications for MPN

created time in 24 days

issue commentavniproject/avni-webapp

Display audit details for all the entities in DEA

@petmongrels @vindeolal @arjunk have some questions on this. Putting in my thoughts here, but a direct discussion might be better.

Context

Problem: Accurate audit details are not available in the system. Data is usually added to the system on the mobile app, then synced to server. created_date and last_updated_date on the audit table currently contains the datetime when the record was created/updated on the server. When looking at it from the webapp, this information can feel wrong.

Solution: Add two additional fields - app_created_date and app_last_modified_date to all transactional tables. These are NOT audit columns. They are timestamps provided by the app that specify when a row was created/updated.

Some questions/clarifications for understanding

  1. Do we also need who created/updated these fields? app_created_user and app_updated_user?
  2. When running data migrations, should we also touch these fields?
  3. How do we visualise this on the webapp and the android app? What would be appropriate names for these fields? (I am not sure how to make users understand that something was created on both 1/1/2021 and 2/1/2021 by the same user).
  4. Does this affect avni-bahmni integration as well?
  5. What do we do with these fields for existing rows? If we are populating them, do we need to populate them in the android app dbs as well? If no, we might have to handle cases where update to an existing row overwrites old values in the server.

Sync performance

I had performed some performance tests with audit tables being in a different table as well as on the same tables. The results were mixed. Concept table syncs run faster (2 seconds to 100 ms on RDS) while program_encounter/program_enrolment syncs got significantly slower (200 ms to 1 second on RDS). The difference probably has something to do with the different RLS mechanisms employed for ref tables vs tx tables. I am not sure why tx table syncs get slower when using audits in the same table, but this is one reason I rolled back this modification when I was working on sync performance.

This is something to consider when we move the columns.

Deployment strategy

I am thinking we do this piecemeal. The pieces can be done either in a single release, or in multiple.

Release 1

  • Move audit columns to their own tables. Add triggers to populate the audit table so that reports keep working.

Release 2

  • Add new app_* columns as required in tx tables. Add mechanism to populate these columns.
  • Change sync API to populate these into the new tables.

Release 2

  • Show required audit values on android app
  • Show required audit values on webapp
  • Show required audit values on external API

Release 3

  • Move all reports to use the new columns for audit.

Release 4

  • Remove triggers to populate audit table. Remove audit table.
vindeolal

comment created time in a month

push eventvinayvenu/simple-server

Vinay Venu

commit sha 4d34140613791a749504752ca6e49fd3297d147e

Modify demo manifest to show only Nepal

view details

push time in a month

push eventvinayvenu/simple-server

Vinay Venu

commit sha 9a4a062e81609650ff2652595222efad8c68de9d

Modify manifest file

view details

push time in a month

push eventvinayvenu/simple-server

Vinay Venu

commit sha 82f6f11a96b940ab6391f4c96ed07cda87eedd7d

Change domain for sendgrid

view details

push time in a month

push eventvinayvenu/simple-server

Prabhanshu Gupta

commit sha 7b4f10f72466ef0a9e2f053ecb5817da4552dd98

Bugfix: invitations controller (#2852)

view details

Rob Sanheim

commit sha 25600487404c1406142a779fe28c9ec978b39902

Update twilio-ruby to 5.58; add send_notification script (#2857) * Update twilio-ruby to 5.58 See https://github.com/twilio/twilio-ruby/blob/main/CHANGES.md for details * Allow sending to a specific phone number to facilitate testing on SBX or other environments -- so that we can send to any phone number with any country code * Add script to make it easy to send notifications * better dos * more docs * more docs * sent_message * Don't depend on rails runner This doesn't work on our ubuntu host, so instead require the environment ourselves

view details

Hari Mohanraj

commit sha f848e1ff86fe28d2f1eff7c12e216e1de564573b

ET - BP date correction (#2854) **Story card:** [ch4544](https://app.clubhouse.io/simpledotorg/story/4544/et-koka-hc-bad-dates) ## Because A user in Ethiopia was using an old version of Simple and entering ET dates into a Gregorian date picker. All these BPs were being stored as being recorded in 2012 and 2013, causing their recent activity to look empty. ## This addresses Retroactively fixes the dates on those bad BPs by doing the following: * Select the BPs from the facility that have dates in 2012 or 2013 * Update them using the conversion formula - same formula that was used in our import spreadsheet, and I've verified the same using some online tools as well. * Update the patient's `recorded_at` to reflect their real registration date, instead of "2013"

view details

vkrmis

commit sha 9630a6896a5d56e86cff30c92c74cda7fcb244d7

Update West Bengal Diuretics base dose factors (#2856) Updated values as recommended by Swagata Sahoo (WHO)

view details

Kris Pethtel

commit sha bdd80e86f29396e1106ef4c3ced2a7c5f24f5d5d

3301 experiment data (#2838) * 3301: export experiment data

view details

Prabhanshu Gupta

commit sha 8604aeca032d1313c77e18c7a3cd5bc846c1ed03

Bugfix: Encounter follow ups don't show up on same day (#2859) **Story card:** [ch4414](https://app.clubhouse.io/simpledotorg/story/4414/et-zeros-in-progress-tab) ## Because Daily follow up numbers on the progress tab number don't show up on the same day. ## This addresses When a facility has both HTN and DM enabled, we fetch daily numbers by comparing `encounters.encountered_on`. However this is a date field, not a datetime field, and the date range comparison excludes today's results. This happens because groupdate tries to convert the time zone of the date. The [recommended way](https://github.com/ankane/groupdate#date-columns) to avoid the time zone conversion is to pass in a `time_zone: false` to groupdate.

view details

Prabhanshu Gupta

commit sha 1b1793b36e396d45e47134f4f62a8b1c69e4a928

Admin access JS performance improvements (#2855)

view details

vkrmis

commit sha 0948b92b235f15ba0d4f9ea745af0a2d77cb6a59

Prevent the gh bot stale action killing #2660 (#2865) We tried this earlier with https://github.com/simpledotorg/simple-server/pull/2768, but that doesn't seem to have worked. Trying a different approach.

view details

Hari Mohanraj

commit sha c4491490e3d135aaa72dd938382bd98f113342d1

Facility search on user edit page (#2864) **Story card:** [ch3936](https://app.clubhouse.io/simpledotorg/story/3936/facility-search-bar) ## Because It's hard for power users to scroll through a dropdown of 10000 facilities to assign a user's facility ## This addresses Adding a search-bar-powered dropdown using standard `bootstrap-select` tools.

view details

Hari Mohanraj

commit sha a00a3c07ef5f533b3c92b7fae322e221a12b629d

Point ET Demo to simple.org subdomain (#2868) The moh.gov.in subdomain's ssl cert has expired, and we wish to unblock a training session immediately

view details

Hari Mohanraj

commit sha a62ca3a7a8b99b14736fd1620501e193c001df07

Facility search on Overdue page (#2867) Follow-up to #2864 **Story card:** [ch3936](https://app.clubhouse.io/simpledotorg/story/3936/facility-search-bar) ## Because The overdue page also has a giant facility list dropdown ## This addresses Making it searchable so that a list of 10k facilities can be managed.

view details

Prabhanshu Gupta

commit sha 9df968d79f8236e6a987a5ba97712706407de953

Add custom medications for Sri Lanka (#2862)

view details

Prabhanshu Gupta

commit sha 071703b15aa031809c0ea4fba7592136b93afac8

App manifest v2 (#2863)

view details

Kris Pethtel

commit sha 142e591b98a30ee4fc14a8c33cf508b7c02c3e74

3301 followup days (#2869)

view details

Prabhanshu Gupta

commit sha 27cdb118e08f9b5b630ad1205aa54946c09fd3f2

States list API (#2866)

view details

Vinay Venu

commit sha ddd30fb0bc667f2cfd680a31a01d079edbe84246

Merge branch 'master' of github.com:simpledotorg/simple-server

view details

push time in a month

push eventvinayvenu/simple-server

Vinay Venu

commit sha 8be2ae75c407db3fa59b4738ec7fa4a8c67e016f

Add Nepal config

view details

push time in a month

push eventvinayvenu/simple-server

Vinay Venu

commit sha a5abee8ff87a3eebcf9126822f232d94d9235c16

Add Nepal provinces

view details

push time in a month

fork vinayvenu/simple-server

The web app behind Simple.org

fork in a month

issue commentavniproject/avni-client

ID concept value should be modifiable using view filter rule

Check out the rule for individual registration in "vinay" organisation on staging.

vindeolal

comment created time in a month

push eventavniproject/avni-client

Vinay Venu

commit sha 5abe28efdca771401ec8236d6931432c9afc4fe1

#491 | Allow rules to modify id value

view details

push time in a month

push eventavniproject/avni-client

Vinay Venu

commit sha c297c6ec460e7f0a649adc0ed7c8e07f7c269368

#493 | Ensure coded always is sent as an array

view details

push time in a month

created tagavniproject/avni-models

tagv1.6.5

OpenCHS data model to be used by front end clients

created time in a month

push eventavniproject/avni-models

Vinay Venu

commit sha 86a06e94622a23e7e9c2e227656e89980bbe5d42

Fix tests

view details

Vinay Venu

commit sha 138281e09b2abe672abdbe4bc569b4bbf8384f11

v1.6.5

view details

push time in a month

created tagavniproject/avni-models

tagv1.6.4

OpenCHS data model to be used by front end clients

created time in a month

push eventavniproject/avni-models

Vinay Venu

commit sha 3ccb3a2631b1b862514dec77a5f473346ccea56d

#491 | Store uuid of identifier temporarily so that we can update the status during save.

view details

Vinay Venu

commit sha 7282102f0116a1f093f6436bd3f9f15b8a565da0

v1.6.4

view details

push time in a month

issue openedavniproject/avni-client

Quite a lot of parallel syncs happening on the android app

image_2021_08_05T05_26_51_201Z.png

Off late, the number of parallel syncs (syncs with the same user and the same start time) have increased quite a lot.

In many cases, only one of them successfully complete. However, there are situations where more than one sync completes successfully.

At any point in time, only one sync should be active on avni-client.

created time in 2 months

issue openedmetabase/metabase

Cannot add parameters in group by clause

Describe the bug Queries with parameters in the group by clause do not work

Logs

2021-08-10 11:11:46,722 [streaming-response-thread-pool-2] ERRORmetabase.query-processor.middleware.catch-exceptions - Error processing query: null
{:database_id 75,
 :started_at #t "2021-08-10T11:11:46.215Z[Zulu]",
 :via
 [{:status :failed,
   :class clojure.lang.ExceptionInfo,
   :error "Error executing query",
   :stacktrace
   ["--> driver.sql_jdbc.execute$execute_reducible_query$fn__80802.invoke(execute.clj:480)"
    "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:477)"
    "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:463)"
    "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:472)"
    "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:463)"
    "driver.sql_jdbc$fn__82291.invokeStatic(sql_jdbc.clj:54)"
    "driver.sql_jdbc$fn__82291.invoke(sql_jdbc.clj:52)"
    "query_processor.context$executef.invokeStatic(context.clj:59)"
    "query_processor.context$executef.invoke(context.clj:48)"
    "query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
    "query_processor.context.default$default_runf.invoke(default.clj:66)"
    "query_processor.context$runf.invokeStatic(context.clj:45)"
    "query_processor.context$runf.invoke(context.clj:39)"
    "query_processor.reducible$pivot.invokeStatic(reducible.clj:34)"
    "query_processor.reducible$pivot.invoke(reducible.clj:31)"
    "query_processor.middleware.mbql_to_native$mbql__GT_native$fn__47888.invoke(mbql_to_native.clj:25)"
    "query_processor.middleware.check_features$check_features$fn__47002.invoke(check_features.clj:39)"
    "query_processor.middleware.limit$limit$fn__47874.invoke(limit.clj:37)"
    "query_processor.middleware.cache$maybe_return_cached_results$fn__46454.invoke(cache.clj:204)"
    "query_processor.middleware.optimize_temporal_filters$optimize_temporal_filters$fn__48134.invoke(optimize_temporal_filters.clj:204)"
    "query_processor.middleware.validate_temporal_bucketing$validate_temporal_bucketing$fn__50066.invoke(validate_temporal_bucketing.clj:50)"
    "query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__45573.invoke(auto_parse_filter_values.clj:43)"
    "query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__41707.invoke(wrap_value_literals.clj:161)"
    "query_processor.middleware.annotate$add_column_info$fn__41582.invoke(annotate.clj:608)"
    "query_processor.middleware.permissions$check_query_permissions$fn__46874.invoke(permissions.clj:81)"
    "query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__48995.invoke(pre_alias_aggregations.clj:40)"
    "query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__47075.invoke(cumulative_aggregations.clj:60)"
    "query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__49292.invoke(resolve_joined_fields.clj:102)"
    "query_processor.middleware.resolve_joins$resolve_joins$fn__49605.invoke(resolve_joins.clj:171)"
    "query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__45149.invoke(add_implicit_joins.clj:190)"
    "query_processor.middleware.large_int_id$convert_id_to_string$fn__47838.invoke(large_int_id.clj:59)"
    "query_processor.middleware.format_rows$format_rows$fn__47819.invoke(format_rows.clj:74)"
    "query_processor.middleware.add_default_temporal_unit$add_default_temporal_unit$fn__44443.invoke(add_default_temporal_unit.clj:23)"
    "query_processor.middleware.desugar$desugar$fn__47141.invoke(desugar.clj:21)"
    "query_processor.middleware.binning$update_binning_strategy$fn__45960.invoke(binning.clj:229)"
    "query_processor.middleware.resolve_fields$resolve_fields$fn__46677.invoke(resolve_fields.clj:34)"
    "query_processor.middleware.add_dimension_projections$add_remapping$fn__44798.invoke(add_dimension_projections.clj:312)"
    "query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__45027.invoke(add_implicit_clauses.clj:147)"
    "query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__50015.invoke(upgrade_field_literals.clj:40)"
    "query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__45312.invoke(add_source_metadata.clj:123)"
    "query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__49167.invoke(reconcile_breakout_and_order_by_bucketing.clj:100)"
    "query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__45520.invoke(auto_bucket_datetimes.clj:147)"
    "query_processor.middleware.resolve_source_table$resolve_source_tables$fn__46724.invoke(resolve_source_table.clj:45)"
    "query_processor.middleware.parameters$substitute_parameters$fn__48977.invoke(parameters.clj:111)"
    "query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__46776.invoke(resolve_referenced.clj:79)"
    "query_processor.middleware.expand_macros$expand_macros$fn__47525.invoke(expand_macros.clj:184)"
    "query_processor.middleware.add_timezone_info$add_timezone_info$fn__45321.invoke(add_timezone_info.clj:15)"
    "query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__49968.invoke(splice_params_in_response.clj:32)"
    "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__49178$fn__49182.invoke(resolve_database_and_driver.clj:31)"
    "driver$do_with_driver.invokeStatic(driver.clj:60)"
    "driver$do_with_driver.invoke(driver.clj:56)"
    "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__49178.invoke(resolve_database_and_driver.clj:25)"
    "query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__47765.invoke(fetch_source_query.clj:274)"
    "query_processor.middleware.store$initialize_store$fn__49977$fn__49978.invoke(store.clj:11)"
    "query_processor.store$do_with_store.invokeStatic(store.clj:44)"
    "query_processor.store$do_with_store.invoke(store.clj:38)"
    "query_processor.middleware.store$initialize_store$fn__49977.invoke(store.clj:10)"
    "query_processor.middleware.validate$validate_query$fn__50022.invoke(validate.clj:10)"
    "query_processor.middleware.normalize_query$normalize$fn__47901.invoke(normalize_query.clj:22)"
    "query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__45167.invoke(add_rows_truncated.clj:35)"
    "query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__49953.invoke(results_metadata.clj:147)"
    "query_processor.middleware.constraints$add_default_userland_constraints$fn__47018.invoke(constraints.clj:42)"
    "query_processor.middleware.process_userland_query$process_userland_query$fn__49064.invoke(process_userland_query.clj:134)"
    "query_processor.middleware.catch_exceptions$catch_exceptions$fn__46958.invoke(catch_exceptions.clj:173)"
    "query_processor.reducible$async_qp$qp_STAR___38246$thunk__38247.invoke(reducible.clj:103)"
    "query_processor.reducible$async_qp$qp_STAR___38246.invoke(reducible.clj:109)"
    "query_processor.reducible$sync_qp$qp_STAR___38255$fn__38258.invoke(reducible.clj:135)"
    "query_processor.reducible$sync_qp$qp_STAR___38255.invoke(reducible.clj:134)"
    "query_processor$process_userland_query.invokeStatic(query_processor.clj:241)"
    "query_processor$process_userland_query.doInvoke(query_processor.clj:237)"
    "query_processor$fn__50112$process_query_and_save_execution_BANG___50121$fn__50124.invoke(query_processor.clj:253)"
    "query_processor$fn__50112$process_query_and_save_execution_BANG___50121.invoke(query_processor.clj:245)"
    "query_processor$fn__50156$process_query_and_save_with_max_results_constraints_BANG___50165$fn__50168.invoke(query_processor.clj:265)"
    "query_processor$fn__50156$process_query_and_save_with_max_results_constraints_BANG___50165.invoke(query_processor.clj:258)"
    "api.dataset$run_query_async$fn__56403.invoke(dataset.clj:56)"
    "query_processor.streaming$streaming_response_STAR_$fn__56382$fn__56383.invoke(streaming.clj:72)"
    "query_processor.streaming$streaming_response_STAR_$fn__56382.invoke(streaming.clj:71)"
    "async.streaming_response$do_f_STAR_.invokeStatic(streaming_response.clj:65)"
    "async.streaming_response$do_f_STAR_.invoke(streaming_response.clj:63)"
    "async.streaming_response$do_f_async$fn__16088.invoke(streaming_response.clj:84)"],
   :error_type :invalid-query,
   :ex-data
   {:sql
    "-- Metabase:: userID: 4 queryType: native queryHash: 7e67b8cb4204f90bff8a0edf8322756159b6c102977faff97ef06e0fa4ac6253\nselect first_name || ?, count(*) from individual\ngroup by first_name || ?;",
    :params ["pp" "pp"],
    :type :invalid-query}}],
 :state "42803",
 :error_type :invalid-query,
 :json_query
 {:type "native",
  :native
  {:query "select first_name || {{ suffix }}, count(*) from individual\ngroup by first_name || {{ suffix }};",
   :template-tags
   {:suffix {:id "dece09ca-42a0-3a8d-c61e-9519f91fb2a5", :name "suffix", :display-name "Suffix", :type "text"}}},
  :database 75,
  :parameters [{:type "category", :value "pp", :target ["variable" ["template-tag" "suffix"]]}],
  :middleware {:js-int-to-string? true, :add-default-userland-constraints? true}},
 :status :failed,
 :class org.postgresql.util.PSQLException,
 :stacktrace
 ["org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2553)"
  "org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2285)"
  "org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:323)"
  "org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:473)"
  "org.postgresql.jdbc.PgStatement.execute(PgStatement.java:393)"
  "org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:164)"
  "org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:114)"
  "com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)"
  "--> driver.sql_jdbc.execute$fn__80720.invokeStatic(execute.clj:340)"
  "driver.sql_jdbc.execute$fn__80720.invoke(execute.clj:338)"
  "driver.sql_jdbc.execute$execute_statement_or_prepared_statement_BANG_.invokeStatic(execute.clj:353)"
  "driver.sql_jdbc.execute$execute_statement_or_prepared_statement_BANG_.invoke(execute.clj:349)"
  "driver.sql_jdbc.execute$execute_reducible_query$fn__80802.invoke(execute.clj:478)"
  "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:477)"
  "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:463)"
  "driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:472)"
  "driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:463)"
  "driver.sql_jdbc$fn__82291.invokeStatic(sql_jdbc.clj:54)"
  "driver.sql_jdbc$fn__82291.invoke(sql_jdbc.clj:52)"
  "query_processor.context$executef.invokeStatic(context.clj:59)"
  "query_processor.context$executef.invoke(context.clj:48)"
  "query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
  "query_processor.context.default$default_runf.invoke(default.clj:66)"
  "query_processor.context$runf.invokeStatic(context.clj:45)"
  "query_processor.context$runf.invoke(context.clj:39)"
  "query_processor.reducible$pivot.invokeStatic(reducible.clj:34)"
  "query_processor.reducible$pivot.invoke(reducible.clj:31)"
  "query_processor.middleware.mbql_to_native$mbql__GT_native$fn__47888.invoke(mbql_to_native.clj:25)"
  "query_processor.middleware.check_features$check_features$fn__47002.invoke(check_features.clj:39)"
  "query_processor.middleware.limit$limit$fn__47874.invoke(limit.clj:37)"
  "query_processor.middleware.cache$maybe_return_cached_results$fn__46454.invoke(cache.clj:204)"
  "query_processor.middleware.optimize_temporal_filters$optimize_temporal_filters$fn__48134.invoke(optimize_temporal_filters.clj:204)"
  "query_processor.middleware.validate_temporal_bucketing$validate_temporal_bucketing$fn__50066.invoke(validate_temporal_bucketing.clj:50)"
  "query_processor.middleware.auto_parse_filter_values$auto_parse_filter_values$fn__45573.invoke(auto_parse_filter_values.clj:43)"
  "query_processor.middleware.wrap_value_literals$wrap_value_literals$fn__41707.invoke(wrap_value_literals.clj:161)"
  "query_processor.middleware.annotate$add_column_info$fn__41582.invoke(annotate.clj:608)"
  "query_processor.middleware.permissions$check_query_permissions$fn__46874.invoke(permissions.clj:81)"
  "query_processor.middleware.pre_alias_aggregations$pre_alias_aggregations$fn__48995.invoke(pre_alias_aggregations.clj:40)"
  "query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__47075.invoke(cumulative_aggregations.clj:60)"
  "query_processor.middleware.resolve_joined_fields$resolve_joined_fields$fn__49292.invoke(resolve_joined_fields.clj:102)"
  "query_processor.middleware.resolve_joins$resolve_joins$fn__49605.invoke(resolve_joins.clj:171)"
  "query_processor.middleware.add_implicit_joins$add_implicit_joins$fn__45149.invoke(add_implicit_joins.clj:190)"
  "query_processor.middleware.large_int_id$convert_id_to_string$fn__47838.invoke(large_int_id.clj:59)"
  "query_processor.middleware.format_rows$format_rows$fn__47819.invoke(format_rows.clj:74)"
  "query_processor.middleware.add_default_temporal_unit$add_default_temporal_unit$fn__44443.invoke(add_default_temporal_unit.clj:23)"
  "query_processor.middleware.desugar$desugar$fn__47141.invoke(desugar.clj:21)"
  "query_processor.middleware.binning$update_binning_strategy$fn__45960.invoke(binning.clj:229)"
  "query_processor.middleware.resolve_fields$resolve_fields$fn__46677.invoke(resolve_fields.clj:34)"
  "query_processor.middleware.add_dimension_projections$add_remapping$fn__44798.invoke(add_dimension_projections.clj:312)"
  "query_processor.middleware.add_implicit_clauses$add_implicit_clauses$fn__45027.invoke(add_implicit_clauses.clj:147)"
  "query_processor.middleware.upgrade_field_literals$upgrade_field_literals$fn__50015.invoke(upgrade_field_literals.clj:40)"
  "query_processor.middleware.add_source_metadata$add_source_metadata_for_source_queries$fn__45312.invoke(add_source_metadata.clj:123)"
  "query_processor.middleware.reconcile_breakout_and_order_by_bucketing$reconcile_breakout_and_order_by_bucketing$fn__49167.invoke(reconcile_breakout_and_order_by_bucketing.clj:100)"
  "query_processor.middleware.auto_bucket_datetimes$auto_bucket_datetimes$fn__45520.invoke(auto_bucket_datetimes.clj:147)"
  "query_processor.middleware.resolve_source_table$resolve_source_tables$fn__46724.invoke(resolve_source_table.clj:45)"
  "query_processor.middleware.parameters$substitute_parameters$fn__48977.invoke(parameters.clj:111)"
  "query_processor.middleware.resolve_referenced$resolve_referenced_card_resources$fn__46776.invoke(resolve_referenced.clj:79)"
  "query_processor.middleware.expand_macros$expand_macros$fn__47525.invoke(expand_macros.clj:184)"
  "query_processor.middleware.add_timezone_info$add_timezone_info$fn__45321.invoke(add_timezone_info.clj:15)"
  "query_processor.middleware.splice_params_in_response$splice_params_in_response$fn__49968.invoke(splice_params_in_response.clj:32)"
  "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__49178$fn__49182.invoke(resolve_database_and_driver.clj:31)"
  "driver$do_with_driver.invokeStatic(driver.clj:60)"
  "driver$do_with_driver.invoke(driver.clj:56)"
  "query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__49178.invoke(resolve_database_and_driver.clj:25)"
  "query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__47765.invoke(fetch_source_query.clj:274)"
  "query_processor.middleware.store$initialize_store$fn__49977$fn__49978.invoke(store.clj:11)"
  "query_processor.store$do_with_store.invokeStatic(store.clj:44)"
  "query_processor.store$do_with_store.invoke(store.clj:38)"
  "query_processor.middleware.store$initialize_store$fn__49977.invoke(store.clj:10)"
  "query_processor.middleware.validate$validate_query$fn__50022.invoke(validate.clj:10)"
  "query_processor.middleware.normalize_query$normalize$fn__47901.invoke(normalize_query.clj:22)"
  "query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__45167.invoke(add_rows_truncated.clj:35)"
  "query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__49953.invoke(results_metadata.clj:147)"
  "query_processor.middleware.constraints$add_default_userland_constraints$fn__47018.invoke(constraints.clj:42)"
  "query_processor.middleware.process_userland_query$process_userland_query$fn__49064.invoke(process_userland_query.clj:134)"
  "query_processor.middleware.catch_exceptions$catch_exceptions$fn__46958.invoke(catch_exceptions.clj:173)"
  "query_processor.reducible$async_qp$qp_STAR___38246$thunk__38247.invoke(reducible.clj:103)"
  "query_processor.reducible$async_qp$qp_STAR___38246.invoke(reducible.clj:109)"
  "query_processor.reducible$sync_qp$qp_STAR___38255$fn__38258.invoke(reducible.clj:135)"
  "query_processor.reducible$sync_qp$qp_STAR___38255.invoke(reducible.clj:134)"
  "query_processor$process_userland_query.invokeStatic(query_processor.clj:241)"
  "query_processor$process_userland_query.doInvoke(query_processor.clj:237)"
  "query_processor$fn__50112$process_query_and_save_execution_BANG___50121$fn__50124.invoke(query_processor.clj:253)"
  "query_processor$fn__50112$process_query_and_save_execution_BANG___50121.invoke(query_processor.clj:245)"
  "query_processor$fn__50156$process_query_and_save_with_max_results_constraints_BANG___50165$fn__50168.invoke(query_processor.clj:265)"
  "query_processor$fn__50156$process_query_and_save_with_max_results_constraints_BANG___50165.invoke(query_processor.clj:258)"
  "api.dataset$run_query_async$fn__56403.invoke(dataset.clj:56)"
  "query_processor.streaming$streaming_response_STAR_$fn__56382$fn__56383.invoke(streaming.clj:72)"
  "query_processor.streaming$streaming_response_STAR_$fn__56382.invoke(streaming.clj:71)"
  "async.streaming_response$do_f_STAR_.invokeStatic(streaming_response.clj:65)"
  "async.streaming_response$do_f_STAR_.invoke(streaming_response.clj:63)"
  "async.streaming_response$do_f_async$fn__16088.invoke(streaming_response.clj:84)"],
 :context :ad-hoc,
 :error
 "ERROR: column \"individual.first_name\" must appear in the GROUP BY clause or be used in an aggregate function\n  Position: 126",
 :row_count 0,
 :running_time 0,
 :data {:rows [], :cols []}}

To Reproduce Steps to reproduce the behavior: Database: Postgres Query: select first_name || {{ suffix }}, count(*) from individual group by first_name || {{ suffix }}; Here, individual is a table with a text field called first_name (The problem occurs only when there is a real table)

The query works fine using the sql editor on Intellij Idea that I use.

Expected behavior The query should run normally, as it does on other tools.

Screenshots If applicable, add screenshots to help explain your problem.

Information about your Metabase Installation: { "browser-info": { "language": "en-US", "platform": "MacIntel", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0", "vendor": "" }, "system-info": { "file.encoding": "UTF-8", "java.runtime.name": "OpenJDK Runtime Environment", "java.runtime.version": "1.8.0_201-b09", "java.vendor": "Oracle Corporation", "java.vendor.url": "http://java.oracle.com/", "java.version": "1.8.0_201", "java.vm.name": "OpenJDK 64-Bit Server VM", "java.vm.version": "25.201-b09", "os.name": "Linux", "os.version": "4.9.76-3.78.amzn1.x86_64", "user.language": "en", "user.timezone": "Zulu" }, "metabase-info": { "databases": [ "postgres", "bigquery" ], "hosting-env": "unknown", "application-database": "postgres", "application-database-details": { "database": { "name": "PostgreSQL", "version": "9.6.20" }, "jdbc-driver": { "name": "PostgreSQL JDBC Driver", "version": "42.2.18" } }, "run-mode": "prod", "version": { "tag": "v0.40.1", "date": "2021-07-14", "branch": "release-x.40.x", "hash": "ed8f9c8" }, "settings": { "report-timezone": "Asia/Calcutta" } } }

You can get this information by going to Admin -> Troubleshooting.

  • Browser: Firefox 90.0.2 (64-bit)
  • Your operating system: Mac OS Catalina (10.15.7 (19H2))
  • Your databases: Postgres 12.x
  • Metabase version: 0.40.1
  • Metabase hosting environment: Ubuntu 18 on AWS
  • Metabase internal database: Postgres

Severity We want to display the age of a person as on a specific date on one of our reports. This requires us to use the age function of postgres as on a specific date (available as a parameter). Currently it is preventing us from running the report.

Additional context Add any other context about the problem here.

created time in 2 months

push eventSamanvayOrg/PneumoniaApp

Vinay Venu

commit sha d32815b03a53b7ef58570aa498a1387619c93739

Add breathcount limits for 1-5 year olds

view details

push time in 2 months

push eventavniproject/avni-client

Vinay Venu

commit sha e53502f171af3a34b348128c01e8f14012a67d6f

#488 | Fix styling for larger fonts

view details

push time in 2 months

issue commentavniproject/avni-client

Group subject type filter

@vindeolal You meant "Add a new Group Subject type filter in the form designer", right?

vindeolal

comment created time in 2 months