Thanks for noticing this!
The forum is the right place for … everything
In this case, because it’s a specific code problem, we will open an issue in GitHub. Since this is about the default config, can you please open an issue in the cht-core repo and tag as a default config bug?
Thanks a lot! Really appreciate your attention to this detail.
Thanks @diana!
Sorry for not providing context, but the issue I am working on aims to introduce this deprecation warning with the use of db-object, which wasn’t present earlier.
The screenshot is meant to verify that the change works.
I’ll file an issue in cht-core and create a draft PR for the mentioned issue if the changes meet expectations.
Hi @apoorvapendse! To echo what Diana said, the forum is always a good place to post things (especially if you are not sure where else they belong). That being said, for specific issues that already existing in a repo it is fine to just add a comment to the issue thread in GitHub. That does help keep the conversation about the issue in a central place. (And, generally speaking folks are pretty responsive both here on the forum and on GitHub.)
Precisely! This looks to be working as desired! One thing I noticed from looking at your screenshots that I missed in the design of the initial issue is that the warning header message is now inaccurate. Previously this code was only detecting horizontal or compact. Now that the validation is more generalized, can you update the warning header to be a more generic message:
`Form at ${xformPath} contains fields with a deprecated appearance. Please update the following:`
Once that is done and you have got the unit tests working, please raise a PR for this!
This would also be super helpful! I suspect there are a number of forms in that default config that are still using the db-object appearance. It would be great to get these updated to the recommended configuration.
Just one tip when it comes to uplifting forms to use select-contact, you can find the docs here. But basically for the form to work you will need to update both the appearance column (from db-object to select-contact) AND the type column. The type changes from db:{{contact_type}} to just be string. Then, you need to add an additional value in the appearance column (it is a space-separated list) that is type-{{contact_type}}. For example, if you start with:
Thanks for taking out the time to write such a detailed reply, I appreciate it.
I’ve opened a PR for this after going through your suggestion, would love to hear your initial thoughts.
I’ll open the follow-up issue on cht-core shortly.
Would it be alright if I quote your observation on type in the issue description as I found it quite helpful.