# Liquibase dbDoc command does not seem to support contexts - includes changes with non-active contexts as pending

**URL:** <https://forum.liquibase.org/t/liquibase-dbdoc-command-does-not-seem-to-support-contexts-includes-changes-with-non-active-contexts-as-pending/3228>\
**Category:** General Discussion\
**Created:** [May 7, 2015, 9:13pm UTC](https://forum.liquibase.org/t/liquibase-dbdoc-command-does-not-seem-to-support-contexts-includes-changes-with-non-active-contexts-as-pending/3228 "2015-05-07T21:13:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcusPhilip](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@MarcusPhilip](https://forum.liquibase.org/u/MarcusPhilip)\
**Post date:** [May 7, 2015, 9:13pm UTC](https://forum.liquibase.org/t/liquibase-dbdoc-command-does-not-seem-to-support-contexts-includes-changes-with-non-active-contexts-as-pending/3228/1 "2015-05-07T21:13:00Z")

</div>

A sane implementation of dbDoc (and judging from [https://liquibase.jira.com/browse/CORE-688)](https://liquibase.jira.com/browse/CORE-688)) should take contexts into account when running, but in my case it lists change sets that have a context that should not be active as _pending_. For example my entire baseline (generated by generateChangeLog). This will never be run.

Am I doing something wrong or is this really the state of affairs?

Is there in that case a decent workaround?

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [May 7, 2015, 9:13pm UTC](https://forum.liquibase.org/t/liquibase-dbdoc-command-does-not-seem-to-support-contexts-includes-changes-with-non-active-contexts-as-pending/3228/2 "2015-05-07T21:13:00Z")

</div>

Yes, that is how dbdoc is currently implemented. The trouble is that depending on how contexts (and labels) are used sometimes they make sense to mark as pending and sometimes they make sense to ignore.

I created [https://liquibase.jira.com/browse/CORE-2367](https://liquibase.jira.com/browse/CORE-2367) to track the feature improvement.

Nathan

---

<div class="post-metadata">

**Author:** ![un1431007453949r91id](https://avatars.discourse-cdn.com/v4/letter/u/848f3c/32.png) [@un1431007453949r91id](https://forum.liquibase.org/u/un1431007453949r91id)\
**Post date:** [May 7, 2015, 9:13pm UTC](https://forum.liquibase.org/t/liquibase-dbdoc-command-does-not-seem-to-support-contexts-includes-changes-with-non-active-contexts-as-pending/3228/3 "2015-05-07T21:13:00Z")

</div>

I agree that its not obvious what is the correct (expected) behavior in this case. The JIRA issue looks like what I would suggest, make it configurable to consider contexts or not.

Thanks!
