New York City’s teachers union lost its suit to block the city from releasing 12,000 teachers’ ratings and names that, for years, have been kept confidential.

State Supreme Court Justice Cynthia Kern ruled today to deny the United Federation of Teachers’ request that the city redact teachers’ names from the Teacher Data Reports. The reports measure a teacher’s effectiveness based on how good she is at improving her students’ test scores from the beginning of the year to the end.

Underpinning the union’s lawsuit was the claim that releasing teachers’ ratings with their names included constituted an unlawful invasion of privacy.

A spokesman for the union said that the union’s lawyers are reviewing the decision.

Kern’s ruling: