Open vishnuyadavalli opened 1 year ago
Hello @vishnuyadavalli thanks for reporting this issue, I will start investigating it. Can you send me the orgId of the environment where you have DevOps Center package installed? And just to rule it out it, have you checked the ignored files?
Hi @EstebanRomero84 ,
Yes I checked Ignored files. They are not in ignored files. As you can see, only 1 apex class is pulled. But the rest of the classes are not pulled.
Org Id - 00DE0000000YgOr
Could you run the following query in the dev environment where you deleted the components?
SELECT Id, MemberName, MemberType, IsNameObsolete, IsNewMember, RevisionCounter, LastModifiedDate FROM SourceMember ORDER BY RevisionCounter DESC
You will need to select Use Tooling API
@EstebanRomero84 ,
Can find the deleted apex classes with the query.
Thank you @vishnuyadavalli this is very helpful. Another question, how did you delete those classes? From setup, from dev console, sfdx, destructive deployment, or other way?
@EstebanRomero84 some from Dev Console, some form Setup ->Apex classes.
@vishnuyadavalli the org where you deleted the classes is a sandbox or a scratch org? And if the answer is sandbox, which type and when source tracking was enabled on it?
Thanks
@EstebanRomero84 Yes. It is a sandbox and created after source tracking is enabled.
@vishnuyadavalli the issue here seems to be related to the Source Member object, which DevOps Center uses to track changes. For some reason Source Member records were not created when you deleted those classes. We contacted internally the team that owns this functionality and they aware of this issue. You can track it here.
@EstebanRomero84 . Thanks you.
I have also experienced this same issue. Deleted source that fails to create a source member record.
Is there an update or Known Issue for it?
I rarely work with Sandboxes and when this was reported to me I was surprised.
From what I can see, this is how Source Tracking works in Sandboxes:
SourceMember
Tooling API object does not have any records (check with: sf data query -t -q "SELECT MemberType, MemberName, IsNameObsolete FROM SourceMember"
)SourceMember
record get's created automatically ✅SourceMember
record get's created automatically ❌
Describe the bug We deleted a bunch of Apex classes and Visualforce Pages. But only a few of them are showing up when we pull changes in work item.
To Reproduce Steps to reproduce the behavior:
Expected behavior Only a few classes are showing up.
Screenshots![image](https://user-images.githubusercontent.com/87042823/183966777-37e1f8d2-c84b-4267-a7af-c3537afcdd3c.png)
Additional context Add any other context about the problem here.