-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #911 from amvanbaren/simplify-publisher-agreement
Simplify publisher agreement
- Loading branch information
Showing
12 changed files
with
164 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
251 changes: 60 additions & 191 deletions
251
server/src/main/java/org/eclipse/openvsx/eclipse/EclipseService.java
Large diffs are not rendered by default.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
server/src/main/java/org/eclipse/openvsx/eclipse/PublisherAgreement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2020 TypeFox and others | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
********************************************************************************/ | ||
package org.eclipse.openvsx.eclipse; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.Objects; | ||
|
||
public class PublisherAgreement { | ||
|
||
public boolean isActive; | ||
|
||
public String documentId; | ||
|
||
/** Version of the last signed publisher agreement. */ | ||
public String version; | ||
|
||
/** Timestamp of the last signed publisher agreement. */ | ||
public LocalDateTime timestamp; | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
PublisherAgreement that = (PublisherAgreement) o; | ||
return isActive == that.isActive | ||
&& Objects.equals(documentId, that.documentId) | ||
&& Objects.equals(version, that.version) | ||
&& Objects.equals(timestamp, that.timestamp); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(isActive, documentId, version, timestamp); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
server/src/main/java/org/eclipse/openvsx/entities/EclipseData.java
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
server/src/main/java/org/eclipse/openvsx/entities/EclipseDataConverter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
server/src/main/resources/db/migration/V1_44__UserData_Add_EclipsePersonId.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE user_data ADD COLUMN eclipse_person_id CHARACTER VARYING(255); | ||
UPDATE user_data SET eclipse_person_id = eclipse_data::json->'personId'; | ||
ALTER TABLE user_data DROP COLUMN eclipse_data; |
Oops, something went wrong.