forcedotcom / forcedotcom/cli

sfdx force:source:pull not recognizing that the application metadata file needs to be pulled when lightning record page assignments have changed

Open
#1,774 4 comments 0 reactions 0 assignees View on GitHub
bug owned by another team SourceMember
Dominant language
No language data
Stars
571
Forks
80
Avg merge
2d 15h
Merged PRs (30d)
3

Description

### Summary

Lightning record page layout assignments for app, recordtype and profile are stored in the application metadata files(Application.app-meta.xml) as profileActionOverrides.

After changing the lightning record page layout assignments through lightning app builder, when you issue a force:source:pull you get changes to the profiles and the record page itself. However, the application metadata file is not updated.

You have to update something in the application(such as the description) and then issue the pull again in order to get the application metadata file to update to include the new changes.

### Steps To Reproduce:

**Repository to reproduce:** [dreamhouse-lwc](https://github.com/dreamhouseapp/dreamhouse-lwc)

***NOTE:** If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we **require** a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.*

1. Create scratch org
1. Create application
1. Create record type for object
1. Create lightning record page for above object without assigning to a profile or app
1. sfdx force:source:pull
1. Update lightning record page to assign profile and app and record type.
1. sfdx force:source:pull

### Expected result

Application.app-meta.xml file should be updated to include the profileActionOverrides for the recordPage, recordtype, and profile.

### Actual result

Profile and recordtype files are the only ones update.

### System Information

{
"cliVersion": "sfdx-cli/7.173.0",
"architecture": "darwin-x64",
"nodeVersion": "node-v16.17.1",
"pluginVersions": [
"@oclif/plugin-autocomplete 1.3.1 (core)",
"@oclif/plugin-commands 2.2.0 (core)",
"@oclif/plugin-help 5.1.14 (core)",
"@oclif/plugin-not-found 2.3.3 (core)",
"@oclif/plugin-plugins 2.1.1 (core)",
"@oclif/plugin-update 3.0.2 (core)",
"@oclif/plugin-version 1.1.2 (core)",
"@oclif/plugin-warn-if-update-available 2.0.6 (core)",
"@oclif/plugin-which 2.1.0 (core)",
"alias 2.1.5 (core)",
"apex 1.3.0 (core)",
"auth 2.2.14 (core)",
"community 2.0.7 (core)",
"config 1.4.21 (core)",
"custom-metadata 2.0.1 (core)",
"data 2.1.4 (core)",
"generator 2.0.6 (core)",
"info 2.1.10 (core)",
"limits 2.0.5 (core)",
"org 2.2.9 (core)",
"packaging 1.9.4 (core)",
"schema 2.1.10 (core)",
"signups 1.2.7 (core)",
"source 2.0.19 (core)",
"telemetry 2.0.2 (core)",
"templates 55.1.0 (core)",
"trust 2.0.4 (core)",
"user 2.1.12 (core)",
"@salesforce/sfdx-plugin-lwc-test 1.0.1 (core)",
"salesforce-alm 54.8.1 (core)"
],
"osVersion": "Darwin 21.6.0",
"shell": "zsh",
"rootPath": "/Users/matthew.allen/.local/share/sfdx/client/7.173.0-5858bb0"
}

### Additional information

_Feel free to attach a screenshot_.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.