Skip to content

Commit

Permalink
Revert generating project prefixes for resolver files
Browse files Browse the repository at this point in the history
Summary:
Adding project prefix didn't solve the problems we have with multi-project setup and resolvers.

We need to re-thing what is the most proper solution, but for now - let's revert the project prefix generation.

Reviewed By: captbaritone

Differential Revision: D48870532

fbshipit-source-id: a14f96afe65387de43db11d916b6980764e21f2e
  • Loading branch information
alunyov authored and facebook-github-bot committed Aug 31, 2023
1 parent e8de912 commit a3fbc12
Show file tree
Hide file tree
Showing 41 changed files with 253 additions and 256 deletions.
4 changes: 2 additions & 2 deletions compiler/crates/relay-compiler/src/artifact_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ impl ArtifactMap {
},
};

for source_definition_name in artifact.artifact_source_keys {
match self.0.entry(source_definition_name) {
for source_key in artifact.artifact_source_keys {
match self.0.entry(source_key) {
Entry::Occupied(mut entry) => {
entry.get_mut().push(artifact_tuple.clone());
}
Expand Down
5 changes: 1 addition & 4 deletions compiler/crates/relay-config/src/project_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ impl ProjectName {
field_name: StringKey,
) -> String {
match self {
ProjectName::Named(project_name) => {
format!("{}_{}__{}", project_name, object_name, field_name)
}
ProjectName::Default => format!("{}__{}", object_name, field_name),
_ => format!("{}__{}", object_name, field_name),
}
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a3fbc12

Please sign in to comment.