Skip to content

Commit 3354bda

Browse files
authored
Hub Sunset (DAT-13292) (liquibase#3996)
* Remove hub related code (DAT-13866)
1 parent 8aca864 commit 3354bda

File tree

94 files changed

+49
-6776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+49
-6776
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ Liquibase system requirements can be found on the [Download Liquibase](https://w
2929
4. Open your CLI and navigate to your `examples/sql` or `examples/xml` directory.
3030
5. Start the included H2 database with the `liquibase init start-h2` command.
3131
6. Run the `liquibase update` command.
32-
7. Optionally, follow the prompt for your email to register for [Liquibase Hub](https://hub.liquibase.com/).
33-
8. Run the `liquibase history` command.
34-
9. If you entered your email, check the report link and the output of the `history` command to see they match.
32+
7. Run the `liquibase history` command to see what has executed!
3533

3634
See also how to [get started with Liquibase in minutes](https://www.liquibase.org/get-started/quickstart) or refer to our [Installing Liquibase](https://docs.liquibase.com/install/home.html) documentation page for more details.
3735

@@ -82,4 +80,4 @@ LIQUIBASE is a registered trademark of [Liquibase Inc.](https://www.liquibase.co
8280
1. When a PO (Product Owner) or a Team Leader navigates to Publish a release from here -> https://github.com/liquibase/liquibase/releases/new, the workflow from /workflow/release-published.yml job is triggered.
8381
2. When a release is triggered, the workflow file will stop after `Setup` step and an email will be sent out to the list of `approvers` mentioned in job `manual_trigger_deployment`. You can click on the link and perform anyone of the options mentioned in description.
8482
3. A minimum of 2 approvers are needed in order for the other jobs such as `deploy_maven`, `deploy_javadocs`, `publish_to_github_packages`, etc to be executed.
85-
4. When you view the GitHub PR, make sure to verify the version which is being published. It should say something like `Deploying v4.20.0 to sonatype`
83+
4. When you view the GitHub PR, make sure to verify the version which is being published. It should say something like `Deploying v4.20.0 to sonatype`

liquibase-cli/src/main/java/liquibase/integration/commandline/LiquibaseCommandLine.java

-11
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import liquibase.exception.CommandLineParsingException;
1515
import liquibase.exception.CommandValidationException;
1616
import liquibase.exception.LiquibaseException;
17-
import liquibase.hub.HubConfiguration;
1817
import liquibase.license.LicenseInfo;
1918
import liquibase.license.LicenseService;
2019
import liquibase.license.LicenseServiceFactory;
@@ -131,8 +130,6 @@ public LiquibaseCommandLine() {
131130
"outputDefaultSchema",
132131
"outputDefaultCatalog",
133132
"changelogFile",
134-
"hubConnectionId",
135-
"hubProjectId",
136133
"contexts",
137134
"labels",
138135
"diffTypes",
@@ -180,7 +177,6 @@ public LiquibaseCommandLine() {
180177
"logFile",
181178
"outputFile",
182179
"liquibaseProLicenseKey",
183-
"liquibaseHubApiKey",
184180
"outputFileEncoding",
185181
"outputLineSeparator"
186182
).collect(Collectors.toSet());
@@ -692,13 +688,6 @@ protected Map<String, Object> configureLogging() throws IOException {
692688

693689
configureLogging(logLevel, logFile, currentConfiguredValue.wasDefaultValueUsed());
694690

695-
//
696-
// Set the Liquibase Hub log level if logging is not OFF
697-
//
698-
if (logLevel != Level.OFF) {
699-
returnMap.put(HubConfiguration.LIQUIBASE_HUB_LOGLEVEL.getKey(), logLevel);
700-
}
701-
702691
return returnMap;
703692
}
704693

liquibase-cli/src/test/groovy/liquibase/integration/commandline/LiquibaseCommandLineTest.groovy

-31
Original file line numberDiff line numberDiff line change
@@ -199,28 +199,6 @@ Global Options
199199
(defaults file: 'liquibase.headless', environment
200200
variable: 'LIQUIBASE_HEADLESS')
201201
202-
--hub-api-key=PARAM Liquibase Hub API key for operations
203-
(defaults file: 'liquibase.hub.apiKey',
204-
environment variable: 'LIQUIBASE_HUB_API_KEY')
205-
206-
--hub-log-level=PARAM Log level for filtering log messages to send to
207-
Liquibase Hub during operations. Values can be
208-
any acceptable log level.
209-
DEFAULT: INFO
210-
(defaults file: 'liquibase.hub.logLevel',
211-
environment variable: 'LIQUIBASE_HUB_LOG_LEVEL')
212-
213-
--hub-mode=PARAM Content to send to Liquibase Hub during
214-
operations. Values can be 'all', 'meta', or 'off'
215-
DEFAULT: ALL
216-
(defaults file: 'liquibase.hub.mode', environment
217-
variable: 'LIQUIBASE_HUB_MODE')
218-
219-
--hub-url=PARAM Liquibase Hub URL for operations
220-
DEFAULT: https://hub.liquibase.com
221-
(defaults file: 'liquibase.hub.url', environment
222-
variable: 'LIQUIBASE_HUB_URL')
223-
224202
--include-catalog-in-specification=PARAM
225203
Should Liquibase include the catalog name when
226204
determining equality?
@@ -466,9 +444,6 @@ Commands
466444
db-doc Generates JavaDoc documentation for the
467445
existing database and changelogs
468446
469-
deactivate-changelog Removes the changelogID from your changelog so
470-
it stops sending reports to Liquibase Hub
471-
472447
diff Outputs a description of differences. If you
473448
have a Liquibase Pro key, you can output the
474449
differences as JSON using the --format=JSON
@@ -506,9 +481,6 @@ Commands
506481
mark-next-changeset-ran-sql Writes the SQL used to mark the next change you
507482
apply as executed in your database
508483
509-
register-changelog Register the changelog with a Liquibase Hub
510-
project
511-
512484
release-locks Remove the Liquibase lock record from the
513485
DATABASECHANGELOG table
514486
@@ -537,9 +509,6 @@ Commands
537509
538510
status Generate a list of pending changesets
539511
540-
sync-hub Synchronize the local DatabaseChangeLog table
541-
with Liquibase Hub
542-
543512
tag Mark the current database state with the
544513
specified tag
545514

liquibase-core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,4 @@
214214
</plugin>
215215
</plugins>
216216
</build>
217-
</project>
217+
</project>

liquibase-dist/src/main/archive/lib/liquibase_autocomplete.sh

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ _liquibase()
1515
updateToTag
1616
updateToTagSQL
1717
status
18-
registerChangeLog
19-
syncHub
2018
rollback
2119
rollbackSQL
2220
rollbackOneChangeSet

liquibase-dist/src/main/archive/lib/liquibase_autocomplete.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function _liquibase(){
44

55
case $state in
66
commands)
7-
compadd -Q checks --help update updateSQL updateCount updateCountSQL updateToTag updateToTagSQL status registerChangeLog syncHub rollback rollbackSQL 'rollbackOneChangeSet --changeSetAuthor --changeSetId --changeSetPath --force' 'rollbackOneChangeSetSQL --changeSetAuthor --changeSetId --changeSetPath' 'rollbackOneUpdate --deploymentId --force' 'rollbackOneUpdateSQL --deploymentId' rollbackToDate rollbackToDateSQL rollbackCount rollbackCountSQL futureRollbackSQL futureRollbackFromTagSQL updateTestingRollback generateChangeLog snapshot snapshotReference diff diffChangeLog dbDoc history tag tagExists status unexpectedChangeSets validate calculateCheckSum clearCheckSums changelogSync changelogSyncSQL changeLogSyncToTag changeLogSyncToTagSQL markNextChangeSetRan markNextChangeSetRanSQL listLocks releaseLocks dropAll
7+
compadd -Q checks --help update updateSQL updateCount updateCountSQL updateToTag updateToTagSQL status rollback rollbackSQL 'rollbackOneChangeSet --changeSetAuthor --changeSetId --changeSetPath --force' 'rollbackOneChangeSetSQL --changeSetAuthor --changeSetId --changeSetPath' 'rollbackOneUpdate --deploymentId --force' 'rollbackOneUpdateSQL --deploymentId' rollbackToDate rollbackToDateSQL rollbackCount rollbackCountSQL futureRollbackSQL futureRollbackFromTagSQL updateTestingRollback generateChangeLog snapshot snapshotReference diff diffChangeLog dbDoc history tag tagExists status unexpectedChangeSets validate calculateCheckSum clearCheckSums changelogSync changelogSyncSQL changeLogSyncToTag changeLogSyncToTagSQL markNextChangeSetRan markNextChangeSetRanSQL listLocks releaseLocks dropAll
88
;;
99
attributes)
1010
compadd -Q show run customize enable disable delete reset bulk-set --changeLogFile --force --format --username --password --url --classpath --driver --databaseClass --propertyProviderClass --defaultSchemaName --contexts --labels --defaultsFile --delimiter --driverPropertiesFile --changeExecListenerClass --changeExecListenerPropertiesFile --liquibaseCatalogName --liquibaseSchemaName --databaseChangeLogTableName --databaseChangeLogLockTableName --databaseChangeLogTablespaceName --liquibaseSchemaName --includeSystemClasspath --overwriteOutputFile --promptForNonLocalDatabase --logLevel --logFile --currentDateTimeFunction --outputDefaultSchema --outputDefaultCatalog --outputFile --rollbackScript --excludeObjects --includeObjects --help --version --snapshotFormat --referenceUsername --referencePassword --referenceUrl --defaultCatalogName --defaultSchemaName --referenceDefaultCatalogName --referenceDefaultSchemaName --schemas --referenceSchemas --outputSchemaAs --includeCatalog --includeSchema --includeTablespace --referenceDriver --dataOutputDirectory --diffTypes --diffTypes=catalog,tables,functions,views,columns,indexes,foreignkeys,primarykeys,uniqueconstraints,data,storedprocedure,triggers,sequences --verbose --liquibaseProLicenseKey

liquibase-dist/src/main/archive/lib/liquibase_autocomplete_mac.bash

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ complete -W \
99
updateToTag \
1010
updateToTagSQL \
1111
'status --verbose' \
12-
'registerChangeLog --changeLogFile=<changelogFile>' \
13-
'syncHub --changeLogFile=<changelogFile>' \
1412
rollback \
1513
rollbackSQL \
1614
'rollbackOneChangeSet --changeSetAuthor=<author> --changeSetId=<id> --changeSetPath=<changelogFile> --force' \

liquibase-extension-testing/src/main/groovy/liquibase/extension/testing/command/CommandTests.groovy

-7
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import liquibase.extension.testing.setup.*
2424
import liquibase.extension.testing.setup.SetupCleanResources.CleanupMode
2525
import liquibase.extension.testing.testsystem.DatabaseTestSystem
2626
import liquibase.extension.testing.testsystem.TestSystemFactory
27-
import liquibase.hub.HubService
28-
import liquibase.hub.core.MockHubService
2927
import liquibase.integration.commandline.LiquibaseCommandLineConfiguration
3028
import liquibase.integration.commandline.Main
3129
import liquibase.logging.core.BufferedLogService
@@ -310,7 +308,6 @@ Long Description: ${commandDefinition.getLongDescription() ?: "NOT SET"}
310308

311309
def scopeSettings = [
312310
(LiquibaseCommandLineConfiguration.LOG_LEVEL.getKey()): Level.INFO,
313-
("liquibase.plugin." + HubService.name) : MockHubService,
314311
(Scope.Attr.resourceAccessor.name()) : testDef.resourceAccessor ?
315312
testDef.resourceAccessor : resourceAccessor,
316313
(Scope.Attr.ui.name()) : testDef.testUI ? testDef.testUI.initialize(uiOutputWriter, uiErrorWriter) :
@@ -1127,10 +1124,6 @@ Long Description: ${commandDefinition.getLongDescription() ?: "NOT SET"}
11271124
println "Copied file " + originalFile + " to file " + newFile
11281125
}
11291126

1130-
void modifyChangeLogId(String originalFile, String newChangeLogId) {
1131-
this.setups.add(new SetupModifyChangelog(originalFile, newChangeLogId))
1132-
}
1133-
11341127
/**
11351128
*
11361129
* Delete the specified resources

liquibase-extension-testing/src/main/groovy/liquibase/extension/testing/setup/SetupModifyChangelog.groovy

-24
This file was deleted.

liquibase-integration-tests/src/test/java/liquibase/dbtest/oracle/OracleIntegrationTest.java

-16
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ public class OracleIntegrationTest extends AbstractIntegrationTest {
2727
String indexOnSchemaChangeLog;
2828
String viewOnSchemaChangeLog;
2929
String customExecutorChangeLog;
30-
String hubTestChangelog;
3130

3231
public OracleIntegrationTest() throws Exception {
3332
super("oracle", DatabaseFactory.getInstance().getDatabase("oracle"));
3433
indexOnSchemaChangeLog = "changelogs/oracle/complete/indexOnSchema.xml";
3534
viewOnSchemaChangeLog = "changelogs/oracle/complete/viewOnSchema.xml";
3635
customExecutorChangeLog = "changelogs/oracle/complete/sqlplusExecutor.xml";
37-
hubTestChangelog = "changelogs/oracle/complete/HubTestChangelog.xml";
3836
// Respect a user-defined location for sqlnet.ora, tnsnames.ora etc. stored in the environment
3937
// variable TNS_ADMIN. This allowes the use of TNSNAMES.
4038
if (System.getenv("TNS_ADMIN") != null)
@@ -116,20 +114,6 @@ public void indexCreatedOnCorrectSchema() throws Exception {
116114

117115

118116

119-
}
120-
@Test
121-
public void testHubChangelog() throws Exception {
122-
assumeNotNull(this.getDatabase());
123-
124-
Liquibase liquibase = createLiquibase(this.hubTestChangelog);
125-
clearDatabase();
126-
127-
try {
128-
liquibase.update(this.contexts);
129-
} catch (ValidationFailedException e) {
130-
e.printDescriptiveError(System.out);
131-
throw e;
132-
}
133117
}
134118

135119
@Test

liquibase-integration-tests/src/test/resources/changelogs/oracle/complete/HubTestChangelog.xml

-23
This file was deleted.

liquibase-integration-tests/src/test/resources/liquibase/extension/testing/command/deactivateChangelog.test.groovy

-60
This file was deleted.

liquibase-integration-tests/src/test/resources/liquibase/extension/testing/command/dropAll.test.groovy

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ Optional Args:
2222
Default: null
2323
driverPropertiesFile (String) The JDBC driver properties file
2424
Default: null
25-
hubConnectionId (UUID) Used to identify the specific Connection in which to record or extract data at Liquibase Hub. Available in your Liquibase Hub Project at https://hub.liquibase.com.
26-
Default: null
27-
hubProjectId (UUID) Used to identify the specific Project in which to record at Liquibase Hub. Available in your Liquibase Hub account at https://hub.liquibase.com.
28-
Default: null
2925
password (String) Password to use to connect to the database
3026
Default: null
3127
OBFUSCATED

0 commit comments

Comments
 (0)