Skip to content

[LINKIS-1.9.0] Feature toggles, dependency optimization and bug fixes for linkis-web and backend#5400

Merged
casionone merged 13 commits intoapache:masterfrom
aiceflower:dev-1.9.0-wds
Apr 2, 2026
Merged

[LINKIS-1.9.0] Feature toggles, dependency optimization and bug fixes for linkis-web and backend#5400
casionone merged 13 commits intoapache:masterfrom
aiceflower:dev-1.9.0-wds

Conversation

@aiceflower
Copy link
Copy Markdown
Member

@aiceflower aiceflower commented Apr 2, 2026

Summary

This PR includes multiple improvements and bug fixes for Linkis 1.9.0 release.

Frontend (linkis-web) Changes

New Features

  1. Python Module feature toggle - Add compile-time parameter to enable/disable Python Module

    • Default: enabled
    • Use PYTHON_MODULE=false npm run build to disable
  2. Disallow system user login toggle - Add compile-time parameter to control system user login prohibition

    • Default: enabled (hadoop, hduser, shduser users cannot login)
    • Use DISALLOW_LOGIN=false npm run build to disable

Bug Fixes

  • Fix i18n key for "Add" button in datasourceAccess module (changed from basedata.add to basedataManagement.add)

Backend Changes

Dependency Optimization

  • Exclude all hbase and hbase-shaded jars from linkis-public-enhancements assembly to avoid conflicts
  • Exclude hbase dependencies from JDBC and Hive engine connectors

Refactoring

  • Upgrade Knife4j and Springfox to 3.x version for better API documentation support
  • Adjust SecurityFilter configuration logic in GatewaySpringConfiguration

Scripts Optimization

  • Optimize linkis service scripts with improved alias and status output format

Version Update

  • Update version to 1.9.0

Test plan

Frontend:

  • Build with PYTHON_MODULE=false and verify Python Module menu is hidden
  • Build with default settings and verify Python Module menu is visible
  • Build with DISALLOW_LOGIN=false and verify system users can login
  • Build with default settings and verify system users cannot login
  • Verify i18n key fix in datasourceAccess module displays Chinese "新增"

Backend:

  • Verify assembly packaging excludes hbase jars successfully
  • Verify linkis scripts execute correctly with optimized output

🤖 Generated with Claude Code

aiceflower and others added 13 commits March 27, 2026 13:36
…设置逻辑

- 添加 userRestful 字段注入
- 将 SecurityFilter.setUserRestful 调用从 createUserRestful 方法移至 @PostConstruct init 方法
- 在 apache profile 中升级 knife4j.version 从 2.0.9 到 3.0.3
- 在 apache profile 中升级 springfox.version 从 2.10.5 到 3.0.0
- 添加 hbase-shaded-jetty 和 hbase-protocol-shaded 排除依赖,解决 Jetty 冲突
- SwaggerBeanPostProcessor 保持兼容 Springfox 3.x API

修复问题:
- 解决 publicservice 服务启动失败问题
- 解决 DynamicResponseModelReader 依赖 TypeNameExtractor 错误
- 解决 Jetty ServletHolder.setClassFrom IllegalStateException 错误

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ectors

Add exclusions for hbase-shaded-jetty and hbase-protocol-shaded to prevent
Jetty class conflicts in JDBC and Hive EngineConn plugins.

Modified files:
- linkis-engineconn-plugins/jdbc/pom.xml
- linkis-engineconn-plugins/hive/pom.xml
Add hbase-shaded-jetty and hbase-protocol-shaded exclusions to distribution.xml
files to prevent Jetty class conflicts at runtime.

Modified files:
- linkis-public-enhancements/distribution.xml
- linkis-engineconn-plugins/hive/src/main/assembly/distribution.xml
- linkis-engineconn-plugins/jdbc/src/main/assembly/distribution.xml
Change from excluding individual hbase-shaded-* jars to using wildcard
pattern to exclude all hbase-shaded packages at once.

Modified files:
- linkis-public-enhancements/distribution.xml
- linkis-engineconn-plugins/hive/src/main/assembly/distribution.xml
- linkis-engineconn-plugins/jdbc/src/main/assembly/distribution.xml
List each hbase-shaded jar explicitly instead of using wildcard pattern
which doesn't work with Maven assembly plugin.

Modified files:
- linkis-public-enhancements/distribution.xml
- linkis-engineconn-plugins/hive/src/main/assembly/distribution.xml
- linkis-engineconn-plugins/jdbc/src/main/assembly/distribution.xml
…sembly

Add comprehensive exclusions for all hbase-related jars to prevent
Jetty class conflicts and reduce unnecessary dependencies.

Modified:
- linkis-public-enhancements/distribution.xml
…t format

## Changes

### 1. Service Alias Mapping (alias 1-6)
- alias [1] --> mg-eureka
- alias [2] --> mg-gateway
- alias [3] --> ps-publicservice
- alias [4] --> cg-linkismanager
- alias [5] --> cg-entrance
- alias [6] --> cg-engineconnmanager

### 2. Status Output Format
- Unified format: alias->[X]  [service-name]  [OK/FAILED]
- Service names left-aligned in 22-character width
- Green [OK] for running services
- Red [FAILED] for failed services

### 3. Files Modified
- linkis-dist/package/sbin/linkis
- linkis-dist/package/sbin/linkis-start-all.sh

### 4. Help Information
Updated help message to show new alias format
…toggle

- Add PYTHON_MODULE environment variable support in vue.config.js
- Create separate python-module-config virtual module to avoid circular dependency
- Modify router.js to conditionally register pythonModule route
- Update index.vue to control menu visibility based on feature flag
- Default: enabled, use PYTHON_MODULE=false npm run build to disable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These documentation files are not required by the project and can be removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change 'message.linkis.basedata.add' to 'message.linkis.basedataManagement.add'
- Keep consistent with other modules like datasourceEnv
- Fix Chinese translation not displaying for add button

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ogin feature

Add compile-time toggle for disallow login feature, similar to python module:
- Default enabled (feature ON)
- Use DISALLOW_LOGIN=false npm run build to disable
- Create virtual module disallow-login-config.js for config injection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aiceflower aiceflower changed the title [LINKIS-WEB] Add build-time feature toggles and bug fixes for linkis-web [LINKIS-1.9.0] Feature toggles, dependency optimization and bug fixes for linkis-web and backend Apr 2, 2026
Copy link
Copy Markdown
Contributor

@casionone casionone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@casionone casionone merged commit bf1cb5b into apache:master Apr 2, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants